XC series analog expansions User Manual Page 29 of 53
MANU003R2V1
E.g.1 Reading Real time 4 channels data; and writing 2 channels data (take expansion 1 as
example)
MOV
ID100
D0
END
M8000
MOV
ID101
D1
MOV
ID102
D2
MOV
ID103
D3
MOV
D10
QD100
MOV
D11
QD101
E.g.2 Applied method of PID (take expansion 1’s channel 0 as example)
MOV
ID100
D10
MOV
ID104
D1000
M8000
MOV
K30
QD106
MOV
K10
QD107
MOV
K300
QD118
MOV
K100
QD119
MOV
K200
QD110
MOV
QD100
D4000
END
Y100
M8000
4-6 Programming
Write channel 0’s data into data register
D0
Write channel 1’s data into data register
D1
Write channel 2’s data into data register
D2
Write channel 3’s data into data register
D3
Write data into register D10 and move to
channel 4
Write data into register D10 and move to
channel 5
Write channel 0’s data into data register D10
Channel 0’s set value is register D4000
Set proportion coefficient Kp as 30
Set proportion coefficient Ki as 10
Set proportion coefficient Kd as 300
Set adjustment band Diff as 100
Set control dead area as 200
Write channel 0’s PID output value into register
D1000
PID start signal
Содержание XC Series
Страница 1: ......
Страница 53: ...XC series analog expansions User Manual Page 53 of 53 MANU003R2V1...