D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E / S E 2 & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g
K1 (4 bits)
0 to15
K2 (8 bits)
0 to 255
K3 (12 bits)
0 to 4,095
K4 (16 bits)
-32,768 to +32,767
Flags
1.
General Flags
The flags listed below are used for indicating the operation result of the application
instruction:
M1020: Zero flag
M1021: Borrow flag
M1022: Carry flag
M1029: Execution of instruction is completed
All flags will turn ON or OFF according to the operation result of an instruction. For example,
the execution result of instructions ADD/SUB/MUL/DVI will affect the state of M1020 to
M1022. When the instruction is not executed, the ON/OFF state of the flag will be held. The
state of the four flags relates to many instructions. See relevant instructions for more details.
X0
M0
M1029
2.
Error Operation Flags
Errors occur during the execution of the instruction when the combination of application
instructions is incorrect or the devices designated by the operand exceed their range. Other
than errors, the flags listed in the table below will be On, and error codes will also appear.
3.
Flags to Extend Functions
Some instructions can extend their function by using some special flags.
Example: instruction RS can switch transmission mode 8-bit and 16-bit by using M1161.
3 - 2 6
K1 (4 bits)
K2 (8 bits)
K3 (12 bits)
K4 (16 bits)
K5 (20 bits)
K6 (24 bits)
K7 (28 bits)
K8 (32 bits)
SET
M0
DSW X10
Y10
D0
RST
M0
0 to15
0 to 255
0 to 4,095
0 to 65,535
0 to 1,048,575
0 to 167,772,165
0 to 268,435,455
-2,147,483,648 to +2,147,483,647
When X0 = ON, DSW will be
enabled.
When X0 = OFF, M0 is
K0
latched. M0 will be reset
only when DSW instruction
is completed to activate
M1029.
Need help?
Do you have a question about the DVP-EX2 and is the answer not in the manual?
Questions and answers