From 000c45521deb494dc7ec7b2706636d9648e48e02 Mon Sep 17 00:00:00 2001 From: "xiang.zhou" Date: Thu, 28 Mar 2024 16:38:37 +0800 Subject: [PATCH] focas:update doc --- .../south-devices/fanuc-focas/fanuc-focas.md | 146 +++++++++++---- .../south-devices/fanuc-focas/fanuc-focas.md | 171 ++++++++++++------ 2 files changed, 230 insertions(+), 87 deletions(-) diff --git a/en_US/configuration/south-devices/fanuc-focas/fanuc-focas.md b/en_US/configuration/south-devices/fanuc-focas/fanuc-focas.md index 38902241..999a12fc 100644 --- a/en_US/configuration/south-devices/fanuc-focas/fanuc-focas.md +++ b/en_US/configuration/south-devices/fanuc-focas/fanuc-focas.md @@ -1,5 +1,7 @@ # Fanuc Focas Ethernet +The Neuron FOCAS driver supports the use of the FOCAS2 protocol for data acquisition and writing for various types of FANUC devices (including multi-path devices). It supports coordinates, operating status, alarms, operation information, macro variables, parameters, diagnostic data, program data, tool offset, tooling, tool life, PMC, and more. + **Support arch**: amd64, armv7 ## Parameter Configuration @@ -27,48 +29,120 @@ ## CNC Data -| tag address | description | data type | parameter | -| ------------- | -------------------------------------------- | ------------ | ----------------------------------------------------------------- | -| actf | actual feed rate | int64/uint64 | - | -| absolute | absolute position data of axis | int64/uint64 | axis number(.n) | -| machine | machine position data of axis | int64/uint64 | axis number(.n) | -| relative | relative position data of axis | int64/uint64 | axis number(.n) | -| distance | distance to go of axis | int64/uint64 | axis number(.n) | -| acts | actual rotational speed of the spindle | int64/uint64 | - | -| skip | skipped position of axis | int64/uint64 | axis number(.n) | -| srvdelay | servo delay amount of axis | int64/uint64 | axis number(.n) | -| accdecdly | acceleration/deceration delay amount of axis | int64/uint64 | axis number(.n) | -| spcss_srpm | converted spindle speed | int64/uint64 | - | -| spcss_sspm | specified surface speed | int64/uint64 | - | -| spcss_smax | clamp of maxmum spindle speed | int64/uint64 | - | -| spload | load information of the serial spindle | int32/uint32 | spindle number(.n) | -| spmaxrpm | maximum r.p.m ratio of serial spindle | int32/uint32 | spindle number(.n) | -| spgear | gear ratio of the serial spindle | int32/uint32 | spindle number(.n) | -| runState | run state | int32/uint32 | 1:EMG 2:Running 3:IDLE | -| controlMode | control mode | int32/uint32 | 0:MID 1:AUTO 3:EDIT 5:JOB 8:INC feed 9:REFerence 10:ReMoTe | -| programMain | exec program | string | - | -| mainProgramNo | main program no | int16/uint16 | - | -| subProgramNo | sub program no | int16/uint16 | - | -| alarm | alarm ID | int32/uint32 | 0:WS 1:PW 2:IO 3:PS | -| alarmMsg | alarm message | string | alarmMsg.(1~16) | -| param | parameter | int32/uint32 | param.(number).(.n) | +### Address Format +`address[.m][.n][.l][@p]` + +The address can support up to 3 parameters, with the `@` symbol specifying the channel where the address is located. + +| Tag Identifier (Address) | Description | Data Type | Parameters | Remarks | +| ------------------------ | ------------------------------------------------ | ------------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| actf | Actual feed rate | int64/uint64 | - | | +| absolute.m | Axis absolute position | int64/uint64 | Axis number | Includes tool offset, may not match the display on the CNC | +| absolute2.m | Axis absolute position 2 | int64/uint64 | Axis number | Data is consistent with the CNC interface | +| machine.m | Axis machine position | int64/uint64 | Axis number | | +| relative.m | Axis relative position | int64/uint64 | Axis number | Includes tool offset, may not match the display on the CNC | +| relative2.m | Axis relative position 2 | int64/uint64 | Axis number | Data is consistent with the CNC interface | +| distance.m | Axis remaining distance | int64/uint64 | Axis number | | +| acts | Actual spindle speed | int64/uint64 | - | | +| acts2.m | Actual spindle speed 2 | int64/uint64 | Spindle number | | +| skip | Axis skip position | int64/uint64 | Axis number | | +| srvdelay | Axis servo delay | int64/uint64 | Axis number | | +| accdecdly | Axis acceleration/deceleration delay | int64/uint64 | Axis number | | +| spcss_srpm | Spindle speed conversion | int64/uint64 | - | | +| spcss_sspm | Specified surface speed | int64/uint64 | - | | +| spcss_smax | Maximum spindle speed for the fixture | int64/uint64 | - | | +| movrlap_input.m | Input overlapping motion value | int64/uint64 | Axis number | | +| movrlap_output.m | Output overlapping motion value | int64/uint64 | Axis number | | +| spload.m | Spindle load | int32/uint32 | Spindle number | | +| spmaxrpm.m | Maximum spindle speed ratio | int32/uint32 | Spindle number | | +| spgear.m | Spindle gear ratio | int32/uint32 | Spindle number | | +| runState | Operating state | int32/uint32 | - | 1: Fault 2: Running 3: Idle | +| controlMode | Control mode | int32/uint32 | - | 0: MID 1: AUTO 3: EDIT 5: JOB 8: INC feed 9: REFERENCE 10: ReMoTe | +| programMain | Machining program name | string | - | | +| mainProgramNo | Main program number | int16/uint16 | - | | +| subProgramNo | Sub program number | int16/uint16 | - | | +| alarm | Alarm ID | int32/uint32 | - | 0: WS 1: PW 2: IO 3: PS | +| alarmMsg.m | Alarm content | string | m as number | Range is 1-16 | +| param.m.n | Parameter | int32/uint32 | m as parameter ID, n as axis number | If not axis-related, set to 0 | +| alarmMsg2.m.n | Alarm content 2 | int16/uint16/string | m as number, n as value parameter | m range is 1-16, n=0 for alarm type, n=1 for alarm number, n=2 for alarm content | +| macroType | Macro variable type | int16/uint16 | - | | +| macroInfo.m | Macro variable information | int16/uint16 | n as value parameter | n=0 for number of local variables, n=1 for public variable indicator | +| macro.m.n | Macro variable | int32/uint32 | m as variable ID, n as value parameter | n=0 for macro variable value, n=1 for decimal places | +| paraNum.m | Number of parameters | int16/uint16 | n as value parameter | n=0 for minimum number of parameters, n=1 for maximum number, n=3 for total number of parameters | +| pitchInfoNum.m | Number of pitch error compensation data | int16/uint16 | - | | +| pitch.m | Pitch error compensation data | int8/uint8 | m as number | | +| tool.m.n | Tool data | int64/uint64 | m as tool number, n as value variable | m starts from 1, n=0 for tool number, n=1 for usage count, n=2 for tool life, n=3 for rest life | +| toolf2.m.n | Tool data 2 | int64/uint64 | m as tool number, n as value variable | m starts from 1, n=0 for tool number, n=1 for usage count, n=2 for tool life, n=3 for rest life | +| toolOffset.m.n | Tool offset data | int32/uint32 | m as tool number, n as tool offset type | m starts from 1, n is related to the specific system model, e.g., for 0i-D, n=0 for radius wear, n=1 for radius shape, n=2 for length wear, n=3 for length shape | +| toolOffsetRange.m.n.l | Tool offset data setting range | int32/uint32 | m as tool number, n as tool offset type, l as value type | m starts from 1, n is related to the specific system model, e.g., for 0i-D, n=0 for radius wear, n=1 for radius shape, n=2 for length wear, n=3 for length shape, l=0 for minimum value, l=1 for maximum value, l=2 for status | +| toolOffsetInfo.m | Tool offset information | int16/uint16 | m as tool offset type | m=0 for memory type, m=1 for the number of available tool offsets, n=2 for tool offset types | +| wkcdsfms.m | Workpiece coordinate offset measurement value | int32/uint32 | Axis number | Not supported in M series | +| wkcdshft.m | Workpiece coordinate offset value | int32/uint32 | Axis number | Not supported in M series | +| wksftRange.m | Workpiece coordinate offset value range | int32/uint32 | n as value parameter | m=0 for minimum value, m=1 for maximum value, m=2 for type, Not supported in M series | +| zofs | Workpiece zero offset value | int32/uint32 | - | | +| zofsInfoNum | Number of workpiece zero offset values | int32/uint32 | - | | +| zofsRange.m.n.l | Workpiece zero offset setting range | int32/uint32 | m as workpiece coordinate offset number, n as axis number, l as value type | l=0 for minimum value, l=1 for maximum value, l=2 for status | +| blkCount | Block counter | int32/uint32 | - | - | +| execProg | Currently truly executed program segment | string | - | | +| mdiPntr | MDI execution information | int32/uint32 | - | Readable only when the device is in MDI mode | +| programMainFile | Main program file information | string | - | | +| pdfCurDir | Current program directory | string | - | | +| pdfDrive.m | Program device information | string | m as device number | m starts from 1 | +| progInfo.m | Program management information | int32/uint32 | m as value parameter | m=0 for number of registered programs, m=1 for number of available programs, m=2 for used memory character count, m=3 for unused memory character count | +| seqNum | Program sequence number | int32/uint32 | - | | +| exaxisName.m.n | Control axis and spindle name | string | m as axis type, n as number | m=0 for control axis, m=1 for spindle, n starts from 1 | +| axisName.m | Control axis name | int8/uint8 | m as number | m starts from 1 | +| hndintrpt.m.n | Handwheel interrupt value | int32/uint32 | m as type, n as number | m=0 for input, m=1 for output, n starts from 1 | +| spdlName.m | Spindle name | int8/uint8 | m as number | m starts from 1 | +| spmeter.m.n | Spindle load percentage | int32/uint32 | m as type, n as number | m=0 for spindle load, m=1 for spindle motor load, n starts from 1 | +| spmeter.m | Servo load percentage | int32/uint32 | m as number | m starts from 1 | +| almhisno | Number of historical alarms | int16/uint16 | - | | +| almhistry.m.n | Historical alarm content | int16/uint16/string | m as number, n as value parameter | m starts from 1, n=0 for alarm type, n=1 for alarm number, n=2 for alarm content | +| omhisno | Number of historical extra operation information | int16/uint16 | - | | +| omhistry.m.n | Historical extra operation information content | int16/uint16/string | m as number, n as value parameter | m starts from 1, n=0 for display flag, n=1 for operation information number, n=2 for operation information content | +| ophisno | Number of historical operation information | int16/uint16 | - | | +| ophistry.m.n | Historical operation information content | int16/uint16 | m as number, n as value parameter | m starts from 1 | +| timer.m.n | Date and time | int16/uint16 | m as type, n as value parameter | m=0 for date, n=0 for year, n=1 for month, n=2 for day; m=1 for time, n=0 for hour, n=1 for minute, n=2 for second | +| diagdata.m.n | Diagnostic data | int32/uint32 | m as diagnostic number, n as value parameter | n=0 for diagnostic value, n=1 for decimal point | +| opmsg.m.n | Current operation information | int16/uint16/string | m as number, n as value parameter | m starts from 1, n=0 for type, n=1 for number, n=2 for content | +| tlGrpinfo.m.n | Tool life management information | int32/uint32 | m as tool group number, n as value parameter | m starts from 1, n=0 for tool quantity, n=1 for remaining tool quantity, n=2 for tool life, n=3 for tool usage life, n=6 for tool warning life | + +::: tip +The number of axes starts from 1 and increases according to the actual number of axes. +To use the tool life management function, the corresponding parameters on the device must be enabled. +If the parameter address does not set `@p`, it defaults to path 1. + *CNC address example* -| address | description | -| ------------ | ----------------------------------------- | -| actf | read actual feed rate | -| absolute.1 | read absolute position of no.1 axis | -| machine.3 | read machine position of no.3 axis | -| spload.1 | read load information of no.1 spindle | -| spmaxrpm.3 | read maximum r.p.m ratio of no.3 spindle | -| param.6712.0 | parts total | -| param.6711.0 | parts count | -| param.6750.0 | power on time | -| param.6753.0 | cutting on time | +| address | description | +| --------------- | -------------------------------------------- | +| actf | read actual feed rate | +| absolute.1 | read absolute position of no.1 axis | +| absolute.1@2 | read absolute position of no.1 axis by path2 | +| machine.3 | read machine position of no.3 axis | +| spload.1 | read load information of no.1 spindle | +| spmaxrpm.3 | read maximum r.p.m ratio of no.3 spindle | +| param.6712.0 | parts total | +| param.6711.0 | parts count | +| param.6750.0 | power on time | +| param.6753.0 | cutting on time | +| macro.3142.0 | Value of macro variable #3142 | +| tool.1.0 | Tool number 1 | +| tool.1.1 | Usage count of tool number 1 | +| tool.1.2 | Total life of tool number 1 | +| tool.1.3 | Warning life of tool number 1 | +| diagdata.1333.3 | Data of diagnostic number 1333 | +| tlGrpinfo.1.1 | Remaining tool life of tool life group 1 | +| toolOffset.1.2 | Length wear of tool number 1 | ## PMC Data +Address Format +`AREA ADDRESS[.BIT][.LEN][@p]` + + + | tag address | description | data type | access | | ----------- | ------------------------------- | --------- | ---------- | | A | message demand | all | read/write | diff --git a/zh_CN/configuration/south-devices/fanuc-focas/fanuc-focas.md b/zh_CN/configuration/south-devices/fanuc-focas/fanuc-focas.md index 98db9260..20823594 100644 --- a/zh_CN/configuration/south-devices/fanuc-focas/fanuc-focas.md +++ b/zh_CN/configuration/south-devices/fanuc-focas/fanuc-focas.md @@ -1,14 +1,16 @@ -# 概览 +# Fanuc Focas Ethernet + +Neuron FOCAS 驱动支持使用 FOCAS2 协议对 FANUC 各类型设备(包含多通道设备)进行数据获取和写入,支持坐标,运行状态,报警,操作信息,宏变量,参数,诊断数据,程序数据,刀偏,刀具,刀具寿命,PMC等。 **支持架构**: amd64, arm/v7 ## 设备设置 -| 字段 | 说明 | -| ------- | ------------ | -| host | 设备 IP 地址 | -| port | 设备端口号 | -| timeout | 连接超时时间 | +| 字段 | 说明 | +| ------- | ----------------------------- | +| host | 设备 IP 地址 | +| port | 设备端口号, 默认 8193 | +| timeout | 连接超时时间, 默认 3000 毫秒 | ## 支持的数据类型 @@ -27,54 +29,121 @@ ## CNC 数据 -| tag 标识(地址) | 说明 | 数据类型 | 参数 | -| ---------------- | ----------------- | ------------ | ----------------------------------------------------------------- | -| actf | 实际进给速度 | int64/uint64 | - | -| absolute | 轴绝对坐标 | int64/uint64 | axis number(.n) | -| machine | 轴机械坐标 | int64/uint64 | axis number(.n) | -| relative | 轴相对坐标 | int64/uint64 | axis number(.n) | -| distance | 轴剩余距离坐标 | int64/uint64 | axis number(.n) | -| acts | 实际主轴转速 | int64/uint64 | - | -| skip | 轴跳过坐标 | int64/uint64 | axis number(.n) | -| srvdelay | 轴伺服延迟量 | int64/uint64 | axis number(.n) | -| accdecdly | 轴加速/减速延迟量 | int64/uint64 | axis number(.n) | -| spcss_srpm | 转换主轴速度 | int64/uint64 | - | -| spcss_sspm | 指定表面速度 | int64/uint64 | - | -| spcss_smax | 夹具最大主轴速度 | int64/uint64 | - | -| spload | 主轴负载 | int32/uint32 | spindle number(.n) | -| spmaxrpm | 主轴最大转速比率 | int32/uint32 | spindle number(.n) | -| spgear | 主轴齿轮比 | int32/uint32 | spindle number(.n) | -| runState | 运行状态 | int32/uint32 | 1:故障 2:运行 3:空闲 | -| controlMode | 控制模式 | int32/uint32 | 0:MID 1:AUTO 3:EDIT 5:JOB 8:INC feed 9:REFerence 10:ReMoTe | -| programMain | 加工程序名 | string | - | -| mainProgramNo | 主程序号 | int16/uint16 | - | -| subProgramNo | 子程序号 | int16/uint16 | - | -| alarm | 报警ID | int32/uint32 | 0:WS 1:PW 2:IO 3:PS | -| alarmMsg | 报警内容 | string | alarmMsg.(1~16) | -| param | 参数 | int32/uint32 | param.(number).(.n) | - - - -轴数从1开始,根据数据轴数递增。 - - +### 地址格式 + +> address\[.m]\[.n]\[.l]\[@p] + +address 最多可以支持3个参数,@ 指定 address 所在通道。 + + +| tag 标识(地址) | 说明 | 数据类型 | 参数 | 备注 | +| --------------------- | -------------------- | ------------------- | ------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| actf | 实际进给速度 | int64/uint64 | - | | +| absolute.m | 轴绝对坐标 | int64/uint64 | 轴序号 | 计算了刀偏,和 CNC 界面显示可能不一致 | +| absolute2.m | 轴绝对坐标2 | int64/uint64 | 轴序号 | 数据与 CNC 界面一致 | +| machine.m | 轴机械坐标 | int64/uint64 | 轴序号 | | +| relative.m | 轴相对坐标 | int64/uint64 | 轴序号 | 计算了刀偏,和 CNC 界面显示可能不一致 | +| relative2.m | 轴相对坐标2 | int64/uint64 | 轴序号 | 数据与 CNC 界面一致 | +| distance.m | 轴剩余距离坐标 | int64/uint64 | 轴序号 | | +| acts | 实际主轴转速 | int64/uint64 | - | | +| acts2.m | 实际主轴转速 | int64/uint64 | 主轴序号 | | +| skip | 轴跳过坐标 | int64/uint64 | 轴序号 | | +| srvdelay | 轴伺服延迟量 | int64/uint64 | 轴序号 | | +| accdecdly | 轴加速/减速延迟量 | int64/uint64 | 轴序号 | | +| spcss_srpm | 转换主轴速度 | int64/uint64 | - | | +| spcss_sspm | 指定表面速度 | int64/uint64 | - | | +| spcss_smax | 夹具最大主轴速度 | int64/uint64 | - | | +| movrlap_input.m | 输入重叠运动值 | int64/uint64 | 轴序号 | +| movrlap_output.m | 输出重叠运动值 | int64/uint64 | 轴序号 | +| spload.m | 主轴负载 | int32/uint32 | 主轴序号 | | +| spmaxrpm.m | 主轴最大转速比率 | int32/uint32 | 主轴序号 | | +| spgear.m | 主轴齿轮比 | int32/uint32 | 主轴序号 | | +| runState | 运行状态 | int32/uint32 | - | 1:故障 2:运行 3:空闲 | +| controlMode | 控制模式 | int32/uint32 | - | 0:MID 1:AUTO 3:EDIT 5:JOB 8:INC feed 9:REFerence 10:ReMoTe | +| programMain | 加工程序名 | string | - | | +| mainProgramNo | 主程序号 | int16/uint16 | - | | +| subProgramNo | 子程序号 | int16/uint16 | - | | +| alarm | 报警ID | int32/uint32 | - | 0:WS 1:PW 2:IO 3:PS | +| alarmMsg.m | 报警内容 | string | m 为序号 | 取值范围为1~16 | +| param.m.n | 参数 | int32/uint32 | m 为参数 ID,n 为轴数 | 如果参数不是轴相关则设置为0 | +| alarmMsg2.m.n | 报警内容 | int16/uint16/string | m 为序号, n 为 值参数 | m 取值范围为1~16, n=0 报警类型 n=1 报警编号 n=2 报警内容 | +| macroType | 宏变量类型 | int16/uint16 | - | | +| macroInfo.m | 宏变量信息 | int16/uint16 | n 为值参数 | n=0 局部变量数 n=1 公共变量指标 | +| macro.m.n | 宏变量类型 | int32/uint32 | m 为变量 ID n 为值参数 | n=0 宏变量值 n=1 小数位数 | +| paraNum.m | 参数数量 | int16/uint16 | n 为值参数 | n=0 参数最小数目 n=1 参数最大数目 n=3 参数总数 | +| pitchInfoNum.m | 俯仰误差补偿数据数量 | int16/uint16 | - | - | +| pitch.m | 俯仰误差补偿数据 | int8/uint8 | m 为序号 | - | +| tool.m.n | 刀具数据 | int64/uint64 | m 为刀具编号,n 为值变量 | m 从 1 开始,n=0 刀具号 n=1 使用次数 n=2 刀具寿命 n=3 预警寿命 | +| toolf2.m.n | 刀具数据 | int64/uint64 | m 为刀具编号,n 为值变量 | m 从 1 开始,n=0 刀具号 n=1 使用次数 n=2 刀具寿命 n=3 预警寿命 | +| toolOffset.m.n | 刀偏数据 | int32/uint32 | m 为刀具编号,n 为刀偏类型 | m 从 1 开始,n 和具体的系统型号有关,以 0i-D 为例,n=0 半径磨损, n=1 半径形状,n=2 长度磨损, n=3 长度形状 | +| toolOffsetRange.m.n.l | 刀偏数据设定范围 | int32/uint32 | m 为刀具编号,n 为刀偏类型,l 为 值类型 | m 从 1 开始,n 和具体的系统型号有关,以 0i-D 为例,n=0 半径磨损, n=1 半径形状,n=2 长度磨损, n=3 长度形状, l=0 最小值 l=1 最大值 l=2状态 | +| toolOffsetInfo.m | 刀偏信息 | int16/uint16 | m 为刀偏类型 | m=0 内存类型, m=1 可用刀偏数量,n=2 刀偏类型 | +| wkcdsfms.m | 工件坐标偏移测量值 | int32/uint32 | 轴序号 | M 系列不支持 | +| wkcdshft.m | 工件坐标偏移值 | int32/uint32 | 轴序号 | M 系列不支持 | +| wksftRange.m | 工件坐标偏移值范围 | int32/uint32 | n 为值变量 | m=0 最小值, m=1 最大值, m=2 类型, M 系列不支持 | +| zofs | 工件零点偏移值 | int32/uint32 | - | - | +| zofsInfoNum | 工件零点偏移值数量 | int32/uint32 | - | - | +| zofsRange.m.n.l | 件零点偏移设定范围 | int32/uint32 | m 为工件坐标偏移编号,n 为轴号,l 为 值类型 | l=0 最小值 l=1 最大值 l=2状态 | +| blkCount | 块计数器 | int32/uint32 | - | - | +| execProg | 当前真正执行的程序段 | string | - | - | +| mdiPntr | MDI执行信息 | int32/uint32 | - | 设备处于 MDI 模式时才可读 | +| programMainFile | 主程序文件信息 | string | - | - | +| pdfCurDir | 当前程序目录 | string | - | - | +| pdfDrive.m | 程序设备信息 | string | m 为 设备序号 | m 从1开始 | +| progInfo.m | 程序管理信息 | int32/uint32 | m 为值参数 | m=0 已注册程序数 m=1 可使用程序数 m=2 已用内存字符数 m=2 未用内存的字符数 | +| seqNum | 程序序列号 | int32/uint32 | - | - | +| exaxisName.m.n | 控制轴和主轴名 | string | m 为轴类型,n 为序号 | m=0 控制轴, m=1 主轴, n 从1开始 | +| axisName.m | 控制轴名 | int8/uint8 | m 为序号 | m 从1开始 | +| hndintrpt.m.n | 手轮中断值 | int32/uint32 | m 为类型,n 为序号 | m =0 输入 m=1 输出,n 从1开始 | +| spdlName.m | 主轴名 | int8/uint8 | m 为序号 | m 从1开始 | +| spmeter.m.n | 主轴负载百分比 | int32/uint32 | m 为类型,n 为序号 | m=0 主轴负载 m=1 主轴电机负载, n 为序号 | +| spmeter.m | 伺服负载百分比 | int32/uint32 | m 为序号 | m 为序号 | +| almhisno | 历史报警数 | int16/uint16 | - | - | +| almhistry.m.n | 历史报警内容 | int16/uint16/string | m 为序号, n 为 值参数 | m 从1开始, n=0 报警类型 n=1 报警编号 n=2 报警内容 | +| omhisno | 历史额外操作信息数 | int16/uint16 | - | - | +| omhistry.m.n | 历史额外操作信息内容 | int16/uint16/string | m 为序号, n 为 值参数 | m 从1开始, n=0 显示标志 n=1 操作信息编号 n=2 操作信息内容 | +| ophisno | 历史操作信息数 | int16/uint16 | - | - | +| ophistry.m.n | 历史操作信息内容 | int16/uint16 | m 为序号, n 为 值参数 | m 从1开始 | +| timer.m.n | 日期时间 | int16/uint16 | m 为类型, n 为 值参数 | m=0 日期, n=0 年, n=1 月, n=2 日;m=1 时间, n=0 时, n=1 分, n=2 秒 | +| diagdata.m.n | 诊断数据 | int32/uint32 | m 为诊断号, n 为 值参数 | n = 0 诊断值,n=1 小数点 | +| opmsg.m.n | 当前操作信息 | int16/uint16/string | m 为序号, n 为 值参数 | m 从1开始,n = 0 类型,n=1 编号,n=2 内容 | +| tlGrpinfo.m.n | 刀具寿命管理信息 | int32/uint32 | m 为刀具组号, n 为 值参数 | m 从1开始,n = 0 刀具数量,n=1 剩余刀具数量,n=2 刀具寿命,n=3 刀具已使用寿命, n=6, 刀具预警寿命 | + +::: tip +轴数从1开始,根据实际轴数递增。 +使用刀具寿命管理功能,需要开启设备相应的参数。 +参数地址不设置 @p,默认为通道1。 *CNC 地址示例* -| 地址 | 说明 | -| ------------ | ---------------------------------------- | -| actf | 读取 actual feed rate | -| absolute.1 | 读取第1个 axis 的 absolute position | -| machine.3 | 读取第3个 axis 的 machine position | -| spload.1 | 读取第1个 spindle 的 load information | -| spmaxrpm.3 | 读取第3个 spindle 的 maximum r.p.m ratio | -| param.6712.0 | 总加工件数 | -| param.6711.0 | 加工件数 | -| param.6750.0 | 上电时间 | -| param.6753.0 | 切削时间 | - - -### PMC 数据 +| 地址 | 说明 | +| --------------- | ------------------------------------------ | +| actf | 读取 actual feed rate | +| absolute.1 | 读取第1个 axis 的 absolute position | +| absolute.1@2 | 读取通道2的第1个 axis 的 absolute position | +| machine.3 | 读取第3个 axis 的 machine position | +| spload.1 | 读取第1个 spindle 的 load information | +| spmaxrpm.3 | 读取第3个 spindle 的 maximum r.p.m ratio | +| param.6712.0 | 总加工件数 | +| param.6711.0 | 加工件数 | +| param.6750.0 | 上电时间 | +| param.6753.0 | 切削时间 | +| macro.3142.0 | 宏变量#3142的值 | +| tool.1.0 | 编号1刀具的刀具号 | +| tool.1.1 | 编号1刀具的已使用次数 | +| tool.1.2 | 编号1刀具的总寿命 | +| tool.1.3 | 编号1刀具的预警寿命 | +| diagdata.1333.3 | 诊断1333号的数据 | +| tlGrpinfo.1.1 | 刀具寿命组1的剩余刀具寿命 | +| toolOffset.1.2 | 刀具编号1的长度磨损 | + + + +## PMC 数据 + +### 地址格式 + +> AREA ADDRESS\[.BIT]\[.LEN]\[@p] | 标识 | 说明 | 类型 | 权限 | | ---- | ------------------------------- | ---- | ---- |