TwinCAT 3 Read Bool

TwinCAT 3 Read Bool 1:

This SIMPL+ macro reads a 1-bit variable from an ADS device and provides it as a digital signal at the Output.

Inputs

Read            : DIGITAL_INPUT;
Commande_Res    : STRING_INPUT;

Read: The read command is sent via a rising edge at this input.

Command_Res: This signal is connected with the output Command_Res of the SIMPL+ macro TwinCAT 3 Communication and serves to transmit the feedback messages.

Outputs

Busy            : DIGITAL_OUTPUT;
Output          : DIGITAL_OUTPUT;
ErrorId         : ANALOG_OUTPUT;
Command_Req     : STRING_OUTPUT;

Busy: During the transfer the output is set and remains active until the signal has been read. During this time no further read commands can be activated via this function block.

Output: The value read is output via this signal.

ErrorId: This analog signal contains the error code that may occur during command execution. If no error has occurred, this signal has the value 0.

Command_Req: This signal is connected with the input Command_Req of the SIMPL+ macro TwinCAT 3 Communication and serves to transmit the commands.

Parameter

AdsPort         : INTEGER_PARAMETER;
IndexGroup      : LONG_INTEGER_PARAMETER;
IndexOffset     : LONG_INTEGER_PARAMETER;

AdsPort: Contains the port number of the ADS device.

IndexGroup: Contains the index group number of the requested ADS service. This value is to be found in the ADS table of the addressed device.

IndexOffset: Contains the index offset number of the requested ADS Service. This value is to be found in the ADS table of the addressed device.