CNT_IO¶
Function Block CNT_IO is used to control the Fast Counter of the digital S500 I/O Devices.
Note
The Fast Counter which is integrated in CPUs PM55x and PM56x (Onboard I/Os) can only be managed by Function Block ONB_IO_CNT ONB_IO_CNT (and not by CNT_IO).
Parameter | Value |
---|---|
Library_File_Name | Counter_AC500_V20.lib |
Available as of PLC runtime system | V2.0 |
Available as of S500 I/O device firmware: | V1.3 |
Type | Type_Function_Block_History |
Function Block CNT_IO is used to control the Fast Counter of the digital S500 I/O Modules.
The operating modes of the Fast Counters are described in detail in a separate chapter: Fast Counter
To activate the Fast Counter of a digital S500 I/O Device, the parameter “High-speed counter” of the I/O device must be set to the desired counting mode in the control system configuration.
Data exchange between CPU and high-speed counter is done using input/output data. The following is required for the counter:
- 2 bytes digital inputs for status bytes 0 and 1
- 4 words analog inputs for 2 actual value double words of counters 1 and 2
- 2 bytes digital outputs for control bytes of counters 1 and 2
- 8 words analog outputs for 4 start/end value double words of counters 1 and 2
Caution
The high-speed counters of the digital S500 I/O devices are only available when connected to the I/O bus of the AC500 CPUs. If connected to the CS31 bus (e. g. with DC551-CS31 or CI590-CS31-HA) or another fieldbus (with DC505-FBP), no Fast Counters are available.
The Function Block CNT_IO has an integrated visualization visuCNT_IO that can be used to control all Function Block functions in parallel to the user program, if input EN_VISU = TRUE.