public class FanucHelper extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
String |
NotAllowedBool
当前地址不允许位操作
|
String |
NotAllowedWord
当前地址不允许字操作
|
static byte |
SELECTOR_AI
AI区数据
|
static byte |
SELECTOR_AQ
AQ区数据
|
static byte |
SELECTOR_D
D区数据
|
static byte |
SELECTOR_G
命令数据
|
static byte |
SELECTOR_I
I区数据
|
static byte |
SELECTOR_M
M区数据
|
static byte |
SELECTOR_Q
Q区数据
|
| 构造器和说明 |
|---|
FanucHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static OperateResultExTwo<Byte,Integer> |
AnalysisFanucAddress(String address,
boolean isBit)
从FANUC机器人地址进行解析数据信息,地址为D,I,Q,M,AI,AQ区
Parse data information from FANUC robot address, the address is D, I, Q, M, AI, AQ area |
static byte[] |
BuildWriteData(byte sel,
int address,
byte[] value,
int length)
构建写入的数据报文,需要指定相关的参数信息
|
static byte[] |
BulidReadData(byte sel,
int address,
short length)
构建读取数据的报文内容
|
static String[] |
GetFanucCmds()
获取所有的命令信息
Get all command information |
public static final byte SELECTOR_Q
public static final byte SELECTOR_I
public static final byte SELECTOR_AQ
public static final byte SELECTOR_AI
public static final byte SELECTOR_M
public static final byte SELECTOR_D
public static final byte SELECTOR_G
public static OperateResultExTwo<Byte,Integer> AnalysisFanucAddress(String address, boolean isBit)
address - fanuc机器人的地址信息isBit - 是否使用位操作public static byte[] BulidReadData(byte sel,
int address,
short length)
sel - 数据类别address - 偏移地址length - 长度public static byte[] BuildWriteData(byte sel,
int address,
byte[] value,
int length)
sel - 数据类别address - 偏移地址value - 原始数据内容length - 写入的数据长度public static String[] GetFanucCmds()
Copyright © 2022. All rights reserved.