Configuration of the CM574-RS in the Project of the \ AC500 CPU¶
Like all other AC500 Communication Modules, the Serial Communication Module CM574-RS is inserted into the PLC configuration as an external Communication Module corresponding to its terminal base slot:
The following entry is created for the Communication Module:
The parameters have the following meaning:
Parameter | Default value | Value | Meaning |
---|---|---|---|
Run config fault | No | No | The user program is not started in case of a configuration error. |
Yes | The user program is started independent of a faulty configuration of the CM574. | ||
Min. update time | 10 | 10…2000 | Minimum update time of the in- and outputs in [ms]. |
Enable debug | Off | Off | The user program of the CPU only runs if the Communication Module is in RUN mode. The user program of the Communication Module only runs when the CPU is in RUN mode. Debug commands on the Communication Module are not permitted. |
On | The user program of the CPU runs independent of the Communication Module status, i.e., all debug commands are permitted on the Communication Module. | ||
Watchdog | 400 | 400..60000 | Watchdog in [ms] |
The two entries “Channel 1” and “Channel 2” below the Communication Module CM574-RS represent the two serial interfaces of the Communication Module. For the freely programmable Communication Module, there is no obligatory assignment between channel and COMx.
Input and output modules can be attached to these submodules. The data of these input/output modules are exchanged cyclically between CPU and Communication Module. The procedure corresponds to that of the hardware inputs and outputs, as described in the documentation “System Technology CPUs” in the chapter “Processing of inputs and outputs in the multitasking system Inputs, Outputs and Flags”.
Per channel, a maximum of 500 bytes of I/O data can be exchanged.
The following submodules are available:
The byte modules contain the channels as BYTE and BOOL respectively, the word modules as WORD, BYTE and BOOL. The double word modules contain the channels only as DWORD.
A maximum of 32 submodules can be attached. There is no automatic monitoring of the 500 bytes being exceeded. For this reason, it needs to be checked whether the last module exceeds the highest permissible input or output address. These addresses are:
Channel | Communication Module inputs in slot x | Communication Module outputs in slot x | ||||
---|---|---|---|---|---|---|
%IBx.y | %IWx.y | %IDx.y | %QBx.y | %QWx.y | %QDx.y | |
Channel 1 | %IBx.499 | %IWx.249 | %IDx.124 | %QBx.499 | %QWx.249 | %QDx.124 |
Channel 2 | %IBx.999 | %IWx.499 | %IDx.249 | %QBx.999 | %QWx.499 | %QDx.249 |
Here is an example of a configuration for exchanging 8 bytes of I/O data on channel 1 and 8 words on channel 2:
Note
In the project of the CM574-RS, the same I/O modules have to be configured for data exchange with the AC500 CPU.
The configuration of the Serial Communication Module in the AC500 CPU project is now complete.