CS31 Bus Extension with CM574-RS ModuleΒΆ
If configuration requires more than one CS31 network, then the CM574-RS is used to extend the CS31 lines. In this case, users have to create two separate programs: one for the PM5xx and one for the CM574-RS including the respective function blocks called from the library.
Function Blocks in CPU and CM574-RS
The following sections explain mandatory steps required while programming such a set-up.
CPU Program
The right part of the picture above describes function blocks for the CPU. The function blocks indicated with dotted lines are not mandatory for a HA-CS31 system to run.
The following function blocks and functions are required to be downloaded to the CPU:
- HA_CS31_CONTROL
- HA_CS31_DIAG
- HA_CS31_DIAG_VIA_CM574
- HA_CS31_CALLBACK_STOP
Note
For HA programming using SFC language (Sequential Function Chart) is not recommended as too much and too spread data is to be synchronized. For further information about programming, please refer to Example_AC500_HA_CS31_V242_3ADR023070M0201.pdf.
- Application will start on CPU A connected to CS31 Bus A if both CPUs start together or on CPU CS31 B and Bus B if only CPU B is connected.
- If CPU A stops / turns off or crashes -> application will run on CPU B and Bus B.
- If CS31 Bus A is open or in short circuit -> application will run on CPU B and Bus B.
CM574-RS Program
The left part of the picture above describes the function blocks for CM574-RS.
Function block HA_CS31_DIAG_ON_CM574 must be downloaded to CM574 module. This function block sends CS31 Bus diagnostics information to host CPU.
The CM574-RS program is common and can be used for each CM574-RS module without any specific changes (please refer to Example_AC500_HA_CS31_V242_3ADR023070M0201.pdf).
Common program for CM574-RS