TwinCAT 3 Read Byte

TwinCAT 3 Read Byte 1:

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

Inputs

Read            : DIGITAL_INPUT;
Command_Res     : STRING_INPUT;

Read: The read command is sent on a positive edge at this input.

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;
Output          : ANALOG_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. No further read commands can be activated via this function block during this time.

Output: The value read out 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 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.