TwinCAT 3 Write Bool

TwinCAT 3 Write Bool 1:

This SIMPL+ macro writes the value of a digital signal present at the Input to a 1-bit variable of an ADS device.

Inputs

Write           : DIGITAL_INPUT;
Input           : DIGITAL_INPUT;
Command_Res     : STRING_INPUT;

Write: The write command is sent on a positive edge at this input.

Input: The value of this signal is written to the ADS device.

Command_Res: This signal is linked to the output Command_Res of the SIMPL+ macro TwinCAT 3 Communication and is used to transfer the feedbacks.

Outputs

Busy            : 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 written. No further write commands can be activated via this function block during this time.

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 linked to the input Command_Req of the SIMPL+ macro TwinCAT 3 Communication and is used to transfer 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.