EasyManua.ls Logo

Thinget XC Series - Some Encode Principles of Device

Thinget XC Series
283 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Function of each device
3-4. Some encode principles of device
MOV D10[D0] D100
M8000
M2
Y0[D0]
MOV K5 D0
M8002
MOV K0 D0
MOV K21 DY0
M0
MOV K3 D0
M1
MOV DX2[D0] D10
M8000
1Data register could be used as offsetindirect assignment
FormatDn[Dm]Xn[Dm] Yn[Dm] Mn[Dm] etc.
2 Bit units compose word
Input Xoutput Ymiddle coil M could compose 16 bits word. E.g. DX0 means
X0~X17compose to be a 16 bits data. DX20 means X20~X37 combines a 16 bits data.
FormatAdd a D before bit device
Bit devices combine to be word devicesDXDYDMDSDTDC
In the preceding example, when D0=0, then D100=D10, Y0 is ON
When M2 turns from OFF to be ON, D0=5, then D100=D15, Y5 is ON.
When D10[D0]=D[10+D0], Y0[D0]=Y[0+D0].
z Word’s offset composed by bit soft unitsDXn[Dm] means DX[n+Dm]
z Soft units with offset, the offset could only be denoted with soft device D.
In the preceding example, when M0 turns from OFF to be ON, the value of the word DY0 composed
by Y0~Y17 equals 21i.e. Y0Y2Y4 turns to be ON status.
Before M1 be activate, when D0=0, DX2[D0] means a word composed by X2~X21
When M1turns from OFF to be ON, D0=3, then DX2[D0] means a word composed by X5~X24
z DXnthe bound of “n” is the exact bound of “X”choose 16 points from the head to the end,
add 0 if not enough.
z Please note, the word composed by bit device couldn’t carry on bit searching address.
37

Table of Contents

Related product manuals