<< 向前        下一页 >>

ID : 7925

返回初始值的FB(Ver.5.35用)

MULTIPROG Ver.5.35的FB不能设定结构体和数组的初始值。

为此,在与本公司提供的FB库文件同箱包装的结构体上,各要素的初始值也全部为“0”。

输入由本公司设定的初始值时,请使用与本公司提供的FB库文件同箱包装的“返回初始值的FB”。

由于为每个结构体准备了FB,请使用与要使用的FB的结构体相符的FB。

对象的FB与变量如下所述。

FB名称 变量
MC_MoveDirectAbsolute CoordSystem
MC_MoveDirectRelative
MC_MoveLinearAbsolute
MC_MoveLinearRelative
MC_MoveCircularAbsolute
MC_MoveApproachDirect
MC_MoveApproachLinear
MC_MoveDepartDirect
MC_MoveDepartLinear
MC_MoveSpline
MC_MoveRotateH ExtAxPosition
MC_SetDynamic Dynamic
MC_WriteAreaDataOp2 ExOption 1~4
MC_WriteRCDT DTValue
MC_WriteRCBatteryDT
MC_WriteEncBatteryDT
MC_WriteRCEtherConfig CommunicationData
MC_WriteExcutableToken

F_CoordSys

这个FB在变量CoordSystem上使用。

FB FB截图 数据类型 输出
F_CoordSys eRC_CoordSys CoordSys.Tool -1
CoordSys.Work -1

F_Joint

这个FB在变量ExtAxPosition上使用。

FB FB截图 数据类型 输出
F_Joint eRC_Joint Joint.J1 -1.0
Joint.J2 0.0
Joint.J3 0.0
Joint.J4 0.0
Joint.J5 0.0
Joint.J6 0.0
Joint.J7 0.0
Joint.J8 0.0

F_Dynamic

这个FB在变量Dynamic上使用。

FB FB截图 数据类型 输出
F_Dynamic eRC_Dynamic Dynamic.Velcity 1.0
Dynamic.Accel 1.0
Dynamic.Decel 1.0

F_ArrExOpt

这个FB在变量ExOption 1~4上使用。

FB FB截图 数据类型 输出
F_ArrExOpt REAL[3] ExOptin[0] 0.0
ExOptin[1] 0.0
ExOptin[2] 0.1

F_DTL

这个FB在变量DTValue上使用。

FB FB截图 数据类型 输出
F_DTL DTL DTValue.YEAR 1970
DTValue.MONTH 1
DTValue.DAY 1
DTValue.WEEKDAY 5
DTValue.HOUR 0
DTValue.MINUTE 0
DTValue.SECOND 0
DTValue.NANOSECOND 0

F_Ethernet

这个FB在变量CommunicationData上使用。

FB FB截图 数据类型 输出
F_Ethernet eRC_Ethernet Ethernet.DHCP FALSE
Ethernet.IPAddress[1] 192
Ethernet.IPAddress[2] 168
Ethernet.IPAddress[3] 0
Ethernet.IPAddress[4] 1
Ethernet.SubnetMask[1] 255
Ethernet.SubnetMask[2] 255
Ethernet.SubnetMask[3] 255
Ethernet.SubnetMask[4] 0
Ethernet.Gateway[1] 0
Ethernet.Gateway[2] 0
Ethernet.Gateway[3] 0
Ethernet.Gateway[4] 0

使用方法

请输入与成为对象的变量相符的FB的返回值。

ID : 7925

<< 向前        下一页 >>