(3)
Compared output
(a) High Speed counter module has a compared output function used to compare present count
value with compared value in size to output as compared.
(b) Available compared outputs are 2 for 1 channel, which can be used separately.
(c) Compared output conditions are 7 associated with >, =, < .
(d) Parameter setting
■ Compared output mode setting
■ Upper setting value is saved in special K area.
Compared output condition Memory address (word) Value
*2)
Present Value < Compared Value
Channel 0 : K302
Channel 1 : K330
Channel 2 : K358
Channel 3 : K386
Set to “0”
Present Value ≤ Compared Value Set to “1”
Present Value = Compared Value Set to “2”
Present Value ≥ Compared Value Set to “3”
Present Value > Compared Value Set to “4”
Compared value 1 ≤ Count value ≤ Compared value 2 Set to “5”
Count value ≤ Compared value 1,
Count value ≥ Compared value 2
Set to “6”
*2) If compared output value not set to 0~6 using counter, error code ‘23’ will be occurred.
■ In order to make actual comparison enabled after compared output condition set, the
compared enable signal is to be On.
Classification
Area per channel
Operation
Ch. 0 Ch. 1 Ch. 2 Ch. 3
Count enable signal K2600 K2700 K2800 K2900 0: N/A, 1: enable
Compared enable signal K2604 K2704 K2804 K2904 0: forbidden, 1: enable