Delta Electronics Programmable Logic Controller DVP-PLC User Manual
Page 257
![background image](/manuals/75807/257/background.png)
6 Application Instructions API 00-49
DVP-PLC Application Manual
6-45
X0
CMP
D0
D2
M0
M0
SUB
D0
D2
D4
M2
SUB
D2
D0
D4
M1
Remarks:
Negative value and its absolute value
a) The sign of a value is indicated by the highest (most left) bit in the register. 0 indicates that the value is a positive
one and 1 indicates that the value is a negative one.
b) NEG instruction is able to convert a negative value into its absolute value.
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
(D0=2)
(D0=1)
(D0=0)
1 1 1
1
1
1
1
1
1
1
1
1
1 1
1
1
(D0=-1)
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
(D0)+1=1
1 1 1
1
1
1
1
1
1
1
1
1
1 1
1
0
(D0=-2)
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
(D0)+1=2
1 1 1
1
1
0
1
1
1
1
1
1
1 1
1
1
(D0=-3)
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
(D0)+1=3
1 1 1
1
1
0
1
1
1
1
1
1
1 1
1
0
(D0=-4)
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
(D0)+1=4
1 1 1
1
1
1
1
1
1
0
1
1
1 1
1
1
(D0=-5)
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
(D0)+1=5
1 0 0
0
0
1
0
0
0
0
0
0
0 0
0
1
(D0=-32,765)
1
1
1
1
1
1
1
1
0
1
1
1
1
0
1
1
(D0)+1=32,765
1 0 0
0
0
1
0
0
0
0
0
0
0 0
0
0
(D0=-32,766)
1
1
1
0
1
1
1
1
0
1
1
1
1
1
1
1
(D0)+1=32,766
1 0 0
0
0
0
0
0
0
0
0
0
0 0
0
1
(D0=-32,767)
1
1
1
1
1
1
1
1
0
1
1
1
1
1
1
1
(D0)+1=32,767
1 0 0
0
0
0
0
0
0
0
0
0
0 0
0
0
(D0=-32,768)
(D0)+1=-32,768
1 0 0
0
0
0
0
0
0
0
0
0
0 0
0
0
Max. absolute value is 32,767
- 1x9 Bi-Directional Transceiver Module OPBD-155F2J1R (7 pages)
- Single Mode SFP Transceiver LCP-1250B4MDRx (14 pages)
- LC-1250xxxx Series (10 pages)
- Human Machine Interface DOP-AS Series (329 pages)
- Analog Output Module DVP04DA-S (2 pages)
- DeviceNet Slave Communication Module IFD9502 (2 pages)
- LCP-155B4MSRx (12 pages)
- High-Speed PCI 12-Axis Motion Control Card PCI-DMC-B01 (528 pages)
- Network Device DVP01PU-S (2 pages)
- GBIC-1250D5MR (12 pages)
- SPBD-1250A4Q1RT (10 pages)
- SILM4015 (1 page)
- LCP-8500A4EDR (14 pages)
- 10GBASE-SR SFP+ Optical Transceiver LCP-10G3A4EDR (16 pages)
- LCP-155A4HSRx (11 pages)
- LCP-1250RJ3SR-L (9 pages)
- SILM320L (1 page)
- LCP-1250RJ3SR-S (9 pages)
- SIL530 (1 page)
- Extension Digital I/O Module DOP-EXIO28RAE (1 page)
- DVP Series PLC DVP04TC-H2 (2 pages)
- 1x9 Bi-Directional Transceiver Module OPBD-155F1J1R (7 pages)
- Distribution Box TAP-CN01/02/03 (2 pages)
- LCP-200A4HSR (9 pages)
- Pulse Generation Unit DVP01PU-H2 (2 pages)
- Power Connection Interface VFD-PSD01 (1 page)
- Programmable Logic Controller DVP04DA-H2 (2 pages)
- Single Mode SFP Transceiver LCP-1250B4QDRx (13 pages)
- LCP-155B4JSRx Series (12 pages)
- Series Temperature Controller DTD Series (2 pages)
- Brake Modules BUE Series (2 pages)
- PLC DVP Series DVP-SX (2 pages)
- Digital Keypad / Display ASD-PU-01A (1 page)
- Multimode SFP Transceiver LCP-1250A4FDRx (14 pages)
- HMU1362M (1 page)
- RPA-01 (1 page)
- THMR1395 (1 page)
- SFBD-155F2J1RM (7 pages)
- Program Transfer Module DVP-PCC01 (1 page)
- RTU-DNET (41 pages)
- AC Servo Drive ASDA-AB (37 pages)
- Digital Keypad / Display ASD-PU-01B (1 page)
- HMR1045 (1 page)
- CANopen Communication Module DVPCOPM-SL (2 pages)
- SPBD-1250B4Q1R (10 pages)