Remote I/O module 16 DI
AL4002
45
•
•
To control the counter modules:
Requirements:
ü
Device is integrated in PROFINET project.
ü
The counter submodules are configured.
ü
The IEC addresses of the cyclic process data are linked to variables.
u
Set the control signals in the output data of the counter submodules.
w
The control signals are sent to the counter submodule.
9.3.9 Acyclic access
The user can access configuration and process data acyclically via data records.
The device supports the following data records:
•
Data record: Filter configuration (
•
Data record: Counter configuration (
•
Note: Read data record
u
Read the data record with the function block RDREC.
Specific parameters:
•
Input ID: HW_ID of the subslot (project-specific); properties of the
subslot
•
Input INDEX: index of the data record
9.3.10 Read counter events
The counter modules generate events when any of the following conditions occur:
•
overflow main counter
•
underflow main counter
•
overflow batch counter
•
underflow batch counter
The events triggered by the device are transmitted via the alarm mechanism of PROFINET IO. The
overflow and underflow events of the counter modules are transmitted as process alarms. Process
alarms are stored in an AINFO array. The relevant information is stored in bytes 16...35.
Structure of the AINFO array:
Bytes
Content
Description
16…19
Module ID
Module identification
• 0x40000000: 8x2 DI Module
• 0x41000000: Counter module
20…23
Submodule ID
Submodule identification
• 0x41000010: CTU Submodule
• 0x41000011: CTD Submodule
• 0x41000012: CTUD Submodule
• 0x41000013: CTDIR Submodule