3. Instruction Set
Pulse execution instruction
When X0 goes from OFF to ON, MOVP
instruction will be executed once and the
instruction will not be executed again in the scan
period
Continuous execution instruction
When X1=ON, the MOV instruction can be
re-executed again in every scan of program. This
is called continuous execution instruction.
Operands
1. Bit devices X, Y, M, and S can be combined into word device, storing values and data for
operations in the form of KnX, KnY, KnM and KnS in an application instruction.
2. Data register D, timer T, counter C and index register E, F are designated by general
operands.
3. A data register D consists of 16 bits, i.e. a 32-bit data register consists of 2 consecutive D
registers.
4. If an operand of a 32-bit instruction designates D0, 2 consecutive registers D1 and D0 will be
occupied. D1 is thehigh word and D0 is the low word. This proncipal also applys to timer T
and 16-bit counters C0 ~ C199.
5. When the 32-bit counters C200 ~ C255 are used as data registers, they can only be
designataed by the operands of 32-bit instructions.
Operand Data format
1. X, Y, M, and S are defined as bit devices which indicate ON/OFF status.
2. 16-bit (or 32-bit) devices T, C, D, and registers E, F are defined as word devices.
3. “Kn” can be placed before bit devices X, Y, M and S to make it a word device for performing
word-device operations. (n = 1 refers to 4 bits. For 16-bit instruction, n = K1 ~ K4; for 32-bit
instruction, n = K1 ~ K8). For example, K2M0 refers to 8 bits, M0 ~ M7.
When X0 = ON
, the contents in M0 ~ M7 will be
moved to b0 ~b7 in D10 and b8 ~b15 will be
set to “0”.
Kn values
16-bit instruction
32-bit instruction
Designated value: K-32,768 ~ K32,767
Designated value: K-2,147,483,648 ~
K2,147,483,647
16-bit instruction: (K1~K4)
32-bit instruction: (K1~K8)