I have a snippet of code that I was given as a reference in ST.
** ModbusMasterRTU(
xConnect:= TRUE,
IPort:= IoConfigGlobals.COM1, // IoConfigGlobals.RS232485Interface, // COM1=Front Port / Serial module = Name of module in Devices structure I/O list
udiBaudrate:= 19200,
usiDataBits:= 8 ,
eParity:= WagoTypesCom.eTTYParity.None ,
eStopBits:= WagoTypesCom.eTTYStopBits.One ,
eHandshake:= WagoTypesCom.eTTYHandshake.None ,
ePhysical:= WagoTypesCom.eTTYPhysicalLayer.RS485HalfDuplex,
xIsConnected=> xIsConnected ,
xError=> ,
oStatus=> ,
eFrameType:= WagoAppPlcModbus.eMbFrameType.RTU ,
tTimeOut:= T#1S,
utQuery:= utQuery ,
xTrigger:= SEND,
utResponse:= utResponse)**
What is the meaning of => in this context?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That is an output of the Function Block ModbusMasterRTU
example: xIsConnected=> xIsConnected
In this line the VAR ModbusMasterRTU.xIsConnected is written to VAR xIsConnected xError=> is writing to nothing here.
Last edit: ljg007 2024-07-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a snippet of code that I was given as a reference in ST.
**
ModbusMasterRTU(
xConnect:= TRUE,
IPort:= IoConfigGlobals.COM1, // IoConfigGlobals.RS232485Interface, // COM1=Front Port / Serial module = Name of module in Devices structure I/O list
udiBaudrate:= 19200,
usiDataBits:= 8 ,
eParity:= WagoTypesCom.eTTYParity.None ,
eStopBits:= WagoTypesCom.eTTYStopBits.One ,
eHandshake:= WagoTypesCom.eTTYHandshake.None ,
ePhysical:= WagoTypesCom.eTTYPhysicalLayer.RS485HalfDuplex,
xIsConnected=> xIsConnected ,
xError=> ,
oStatus=> ,
eFrameType:= WagoAppPlcModbus.eMbFrameType.RTU ,
tTimeOut:= T#1S,
utQuery:= utQuery ,
xTrigger:= SEND,
utResponse:= utResponse)**
What is the meaning of => in this context?
That is an output of the Function Block ModbusMasterRTU
example:
xIsConnected=> xIsConnected
In this line the VAR ModbusMasterRTU.xIsConnected is written to VAR xIsConnected
xError=> is writing to nothing here.
Last edit: ljg007 2024-07-22