50
When write a new value in the register, the former value will be covered.
When PLC changes from RUN to STOP or STOP to RUN, the value in the register will be
cleared.
Retentive type
When PLC changes from RUN to STOP or power off, the value in the register will be
retained.
The retentive register range cannot be changed.
Special type
Special register is used to set special data, or occupied by the system.
Some special registers are initialized when PLC is power on.
Please refer to the appendix for the special register address and function.
Used as offset (indirect appoint)
Data register can be used as offset of soft element.
Format : Dn[Dm], Xn[Dm], Yn[Dm], Mn[Dm].
Word offset: DXn[Dm] means DX[n+Dm].
The offset value only can be set as D register.
MOV K0 D0
SM2
MOV K5 D0
M2
MOV D10[D0] D100
SM0
( )
Y0[D0]
When D0=0, D100=D10, Y0 is ON;
When M2 is from OFF→ON, D0=5, D100=D15, Y5 is ON.
D10[D0]=D[10+D0], Y0[D0]=Y[0+D0].
Data register D can deal with many kinds of data.
Data storage
When M0 is ON, write 100 into D0.(16 bits value)
When M1 is ON, write 41100 into D11,D10 (32bits value)
tudonghoatoancau.com