TM3_GetModuleBusStatus: Get TM3 Module Bus Status

Function Description

This function returns the bus status of the module. The index of the module is given as an input parameter.

Library and Namespace

Library name: TM3System

Namespace: SEC_TM3Sys

Graphical Representation

G-SE-0029803.2.jpg

 

 

IL and ST Representation

To see the general representation in IL or ST language, refer to the chapter Function and Function Block Representation.

I/O Variable Description

The following table describes the input variable:

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).

The following table describes the output variable:

Output

Type

Comment

TM3_GetModuleBusStatus

TM3_ERR_CODE

Returns TM3_NO_ERR (00 hex) if command is correct otherwise returns the ID code of the detected error.