TM3_SendDc2Cmd: Send a DC2 Command to the TM3 bus
This function sends a module configuration command to the TM3 bus.
Library name: TM3System
Namespace: SEC_TM3Sys
To see the general representation in IL or ST language, refer to the chapter Function and Function Block Representation.
The following table describes the input variables:
Input |
Type |
Comment |
---|---|---|
ModuleIndex |
BYTE |
Index of the expansion module (0 for the module closest to the controller, 1 for the second closest, and so on) |
RWtype |
BYTE |
Access type o0: read o1: write o2: read/write |
ByteSize |
BYTE |
Number of bytes to access (1 to 127) |
HeadAddr |
BYTE |
Address within the block to be accessed (0 to 127) |
BlockNum |
BYTE |
Block to be accessed (0 to 63) |
pInData |
POINTER TO BYTE |
Pointer to the data buffer filled by the TM3 module. If no data expected: 0. |
pOutData |
POINTER TO BYTE |
Pointer to the data buffer to be written to the TM3 module. If no data buffer to write: 0. |
The following table describes the output variable:
Output |
Type |
Comment |
---|---|---|
TM3_SendDc2Cmd |
TM3_ERR_CODE |
Error code returned by the function. Refer to TM3_NO_ERR. |