Variable assignments

2024-07-20
2024-07-22
  • konradkmiller - 2024-07-20

    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?

     
  • ljg007 - 2024-07-22

    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

Log in to post a comment.