Details of Implicit Exchange Objects for the T_Unsigned_CPT_BMX and T_Signed_CPT_BMX-types IODDTs
Original instructions
At a Glance
The tables below present the T_Unsigned_CPT_BMX and T_Signed_CPT_BMX-types IODDTs implicit exchange objects which are applicable to all BMX EHC •••• counting modules.
Counter Value and Sensor Values
The table below presents the various IODDT implicit exchange objects:
Standard symbol
Type
Access
Meaning
Language object
COUNTER_CURRENT_VALUE
DINT
R
Current counter value
%IDr.m.c.2
CAPT_0_VALUE
DINT
R
Counter value when captured in register 0
%IDr.m.c.4
CAPT_1_VALUE
DINT
R
Counter value when captured in register 1
%IDr.m.c.6
COUNTER_VALUE
DINT
R
Current counter value during event
%IDr.m.c.12
CAPT_0_VAL
DINT
R
Capture value 0
%IDr.m.c.14
CAPT_1_VAL
DINT
R
Capture value 1
%IDr.m.c.16
%Ir.m.c.d Word
The table below presents the meanings of the %Ir.m.c.d words:
Standard symbol
Type
Access
Meaning
Language object
CH_ERROR
BOOL
R
Channel error
%Ir.m.c.ERR
OUTPUT_0_Echo
BOOL
R
Logical state of output 0
%Ir.m.c.0
OUTPUT_1_Echo
BOOL
R
Logical state of output 1
%Ir.m.c.1
OUTPUT_BLOCK_0
BOOL
R
State of output block 0
%Ir.m.c.2
OUTPUT_BLOCK_1
BOOL
R
State of output block 1
%Ir.m.c.3
INPUT_A
BOOL
R
Physical state of IN_A input
%Ir.m.c.4
INPUT_B
BOOL
R
Physical state of IN_B input
%Ir.m.c.5
INPUT_SYNC
BOOL
R
Physical state of the IN_SYNC input (or IN_AUX)
%Ir.m.c.6
INPUT_EN
BOOL
R
Physical state of IN_EN input (enable)
%Ir.m.c.7
INPUT_REF
BOOL
R
Physical state of the IN_REF input (preset)
%Ir.m.c.8
INPUT_CAPT
BOOL
R
Physical state of IN_CAP input (capture)
%Ir.m.c.9
Counter Status, %IWr.m.c.0 Word
The following table presents the meanings of the bits of the %IWr.m.c.0 status word:
Standard symbol
Type
Access
Meaning
Language object
RUN
BOOL
R
The counter operates in counting mode only
%IWr.m.c.0.0
MODULO_FLAG
BOOL
R
Flag set to 1 by a modulo switch event
%IWr.m.c.0.1
SYNC_REF_FLAG
BOOL
R
Flag set to 1 by a preset or synchronization event
%IWr.m.c.0.2
VALIDITY
BOOL
R
The current numerical value is valid
%IWr.m.c.0.3
HIGH_LIMIT
BOOL
R
The current numerical value is locked at the upper threshold value
%IWr.m.c.0.4
LOW_LIMIT
BOOL
R
The current numerical value is locked at the lower threshold value
%IWr.m.c.0.5
Comparison Status, %IWr.m.c.1 Word
The following table presents the meanings of the bits of the %IWr.m.c.1 status word:
Standard symbol
Type
Access
Meaning
Language object
COUNTER_LOW
BOOL
R
Current counter value less than lower threshold (%QDr.m.c.2)
%IWr.m.c.1.0
COUNTER_WIN
BOOL
R
Current counter value is between lower threshold (%QDr.m.c.2) and upper threshold (%QDr.m.c.4)
%IWr.m.c.1.1
COUNTER_HIGH
BOOL
R
Current counter value greater than upper threshold (%QDr.m.c.4)
%IWr.m.c.1.2
CAPT_0_LOW
BOOL
R
Value captured in register 0 is less than lower threshold (%QDr.m.c.2)
%IWr.m.c.1.3
CAPT_0_WIN
BOOL
R
Value captured in register 0 is between lower threshold (%QDr.m.c.2) and upper threshold (%QDr.m.c.4)
%IWr.m.c.1.4
CAPT_0_HIGH
BOOL
R
Value captured in register 0 is greater than upper threshold (%QDr.m.c.4)
%IWr.m.c.1.5
CAPT_1_LOW
BOOL
R
Value captured in register 1 is less than lower threshold (%QDr.m.c.2)
%IWr.m.c.1.6
CAPT_1_WIN
BOOL
R
Value captured in register 1 is between lower threshold (%QDr.m.c.2) and upper threshold (%QDr.m.c.4)
%IWr.m.c.1.7
CAPT_1_HIGH
BOOL
R
Value captured in register 1 is greater than upper threshold (%QDr.m.c.4)
%IWr.m.c.1.8
Event Sources, %IWr.m.c.10 Word
The following table presents the meanings of the bits of the %IWr.m.c.10 word:
Standard symbol
Type
Access
Meaning
Language object
EVT_SOURCES
INT
R
Event sources field
%IWr.m.c.10
EVT_RUN
BOOL
R
Event due to start of counter.
%IWr.m.c.10.0
EVT_MODULO
BOOL
R
Event due to modulo switch
%IWr.m.c.10.1
EVT_SYNC_PRESET
BOOL
R
Event due to synchronization or preset
%IWr.m.c.10.2
EVT_COUNTER_LOW
BOOL
R
Event due to counter value being less than lower threshold
%IWr.m.c.10.3
EVT_COUNTER_WINDOW
BOOL
R
Event due to counter value being between the two thresholds
%IWr.m.c.10.4
EVT_COUNTER_HIGH
BOOL
R
Event due to counter value being greater than upper threshold
%IWr.m.c.10.5
EVT_CAPT_0
BOOL
R
Event due to capture function 0
%IWr.m.c.10.6
EVT_CAPT_1
BOOL
R
Event due to capture function 1
%IWr.m.c.10.7
EVT_OVERRUN
BOOL
R
Warning: lost event(s)
%IWr.m.c.10.8
Output Thresholds and Frequency
The table below presents the various IODDT implicit exchange objects:
Standard symbol
Type
Access
Meaning
Language object
LOWER_TH_VALUE
DINT
R/W
Lower threshold value
%QDr.m.c.2
UPPER_TH_VALUE
DINT
R/W
Upper threshold value
%QDr.m.c.4
PWM_FREQUENCY
DINT
R/W
Output frequency value (unit = 0.1 Hz)
%QDr.m.c.6
PWM_DUTY
INT
R/W
Duty cycle value of the output frequency (unit = 5%)
%QDr.m.c.8
%Qr.m.c.d Words
The following table presents the meanings of the bits of the %Qr.m.c.d words:
Standard symbol
Type
Access
Meaning
Language object
OUTPUT_0
BOOL
R/W
Forces OUTPUT_0 to level 1
%Qr.m.c.0
OUTPUT_1
BOOL
R/W
Forces OUTPUT_1 to level 1
%Qr.m.c.1
OUTPUT_BLOCK_0_ENABLE
BOOL
R/W
Implementation of output 0 function block
%Qr.m.c.2
OUTPUT_BLOCK_1_ENABLE
BOOL
R/W
Implementation of output 1 function block
%Qr.m.c.3
FORCE_SYNC
BOOL
R/W
Counting function synchronization and start
%Qr.m.c.4
FORCE_REF
BOOL
R/W
Set to preset counter value
%Qr.m.c.5
FORCE_ENABLE
BOOL
R/W
Implementation of counter
%Qr.m.c.6
FORCE_RESET
BOOL
R/W
Reset counter
%Qr.m.c.7
SYNC_RESET
BOOL
R/W
Reset SYNC_REF_FLAG
%Qr.m.c.8
MODULO_RESET
BOOL
R/W
Reset MODULO_FLAG
%Qr.m.c.9
FUNCTIONS_ENABLING, %QWr.m.c.0 Word
The following table presents the meanings of the bits of the %QWr.m.c.0 words:
Standard symbol
Type
Access
Meaning
Language object
VALID_SYNC
BOOL
R/W
Synchronization and start authorization for the counting function via the IN_SYNC input
%QWr.m.c.0.0
VALID_REF
BOOL
R/W
Operation authorization for the internal preset function
%QWr.m.c.0.1
VALID_ENABLE
BOOL
R/W
Authorization of the counter enable via the IN_EN input
%QWr.m.c.0.2
VALID_CAPT_0
BOOL
R/W
Capture authorization in the capture0 register
%QWr.m.c.0.3
VALID_CAPT_1
BOOL
R/W
Capture authorization in the capture1 register
%QWr.m.c.0.4
COMPARE_ENABLE
BOOL
R/W
Comparators operation authorization
%QWr.m.c.0.5
COMPARE_SUSPEND
BOOL
R/W
Comparator frozen at its last value
%QWr.m.c.0.6
EVENT_SOURCES_ENABLING, %QWr.m.c.1 Word
The following table presents the meanings of the bits of the %QWr.m.c.1 words:
Standard symbol
Type
Access
Meaning
Language object
EVT_RUN_ENABLE
BOOL
R/W
EVENT task call at start of the counting function
%QWr.m.c.1.0
EVT_MODULO_ENABLE
BOOL
R/W
EVENT task call when there is a counter reversal
%QWr.m.c.1.1
EVT_REF_ENABLE
BOOL
R/W
EVENT task call during counter synchronization or preset
%QWr.m.c.1.2
EVT_COUNTER_LOW_ENABLE
BOOL
R/W
EVENT task call when the counter value is less than lower threshold
%QWr.m.c.1.3
EVT_COUNTER_WINDOW_ENABLE
BOOL
R/W
EVENT task call when the counter is between the lower and upper threshold
%QWr.m.c.1.4
EVT_COUNTER_HIGH_ENABLE
BOOL
R/W
EVENT task call when the counter value is greater than the upper threshold
%QWr.m.c.1.5
EVT_CAPT_0_ENABLE
BOOL
R/W
EVENT task call during capture in register 0
%QWr.m.c.1.6
EVT_CAPT_1_ENABLE
BOOL
R/W
EVENT task call during capture in register 1
%QWr.m.c.1.7