2. Programming Concepts
Contents:
1. When M1039 is ON, program scan time is determined by D1039. When program execution is
completed, next scan will be activated only when the fixed scan time is reached. If D1039 is
less than actual scan time, it will scan by the actual program scan time.
M1000
normally ON
contact
MOV P K20 D1039
M1039
Fix scan time
Scan time is fixed to 20ms
2. Instructions related to scan time, RAMP, HKY, SEGL, ARWS and PR should be used with
“fixed scan time” or “timed interrupt”.
3. Particularly for instruction HKY, which is applied for 16-keys input operated by 4x4 matrix,
scan time should be set to 20ms or above.
4. Scan time displayed in D1010~D1012 also includes fixed scan time.
Analog Function built in the PLC
Contents:
1. The function is for EX2/SX2 Only
2. Resolution of AD (analog input) channels: 12 bits for 20EX2 and 20SX2; 16 bits for the
voltage/current mode of 30EX2; 0.1 ℃ for the temperature mode of 30EX2
3. The analog input signals and their corresponding digital values:
20EX2/SX2 30EX2
Voltage
Current
Temperature
PT100/PT1000
-180 ℃~+800 ℃
Not support -1800~+8000
NI100/NI1000
-80 ℃ ~ +170 ℃
Not support -800~+1700
4. Resolution of DA (analog output) channels: 12 bits
5. The analog output signals and their corresponding digital values:
20EX2/SX2 30EX2
6. The descriptions of the special data registers for the analog functions:
D1062
Average number of times analog input signals are input through CH0~CH3 of
20EX2/SX2: 1~20, Default = K2
Average number of times analog input signals are input through CH0~CH2 of
30EX2: 1~15, Default = K2
Average value of EX2/SX2 analog input channel 0 (AD 0)
Average value of EX2/SX2 analog input channel 1 (AD 1)
Average value of EX2/SX2 analog input channel 2 (AD 2)
Average value of 20EX2/SX2 analog input channel 3 (AD 3)