SigID

Function - Get the identifier of a "Signal" resource

Inputs

SIGNAL : STRING  Name of the signal resource - must be a constant value!
COL : STRING     Name of the column within the signal resource - must be a constant value!

Outputs

ID : DINT        ID of the signal - to be passed to other blocks

Remarks

Some blocks have arguments that refer to a "signal" resource. For all these blocks, the signal argument is materialized by a numerical identifier. This function enables you to get the identifier of a signal defined as a resource.

ST Language

ID := SigID ('MySignal', 'FirstColumn');

FBD Language

LD Language

IL Language

Op1: LD    'MySignal'
     SigID 'FirstColumn'
     ST    ID

See also

SigPlay   SigScale   Signal resources