Download SES 4000 USER MANUAL
Transcript
Using Math Instructions Subtract (SUB) Use the SUB instruction to subtract one value (Source B) from another (source A) and place the result in the destination. Source A and B can either be a word address or constant. SUB SUBTRACT Source A Source B Dest Execution Times (µsec) when: True False 6.78 Updates to Arithmetic Status Bits With this Bit: S:0/0 Carry (C) The Controller: sets if borrow is generated; otherwise resets. S:0/1 Overflow (V) S:0/2 Zero (Z) sets if underflow; otherwise reset. On underflow, the minor error flag is also set. The value –32,768 or 32,767 is placed in the destination. If S:2/14 (math overflow selection bit) is set, then the unsigned, truncated overflow remains in the destination. sets if result is zero; otherwise resets. S:0/3 Sign (S) sets if result is negative; otherwise resets. 8–5 Programming 33.52
Related documents
1761-6.3, MicroLogix™ 1000 Programmable Controllers, User Manual
1761-6.3, MicroLogix™ 1000 Programmable Controllers, User Manual
R PowerPC 603/604 Reference Design Technical
6008-6.5.11, VMEbus Remote I/O Scanner, User Manual
1761-UM003 - Rockwell Automation
1763-IN001 - Rockwell Automation
Table of Contents
1779-6.5.3,Data Highway II PLC-2 Family Interface User Manual
1000 Programmable Controllers and Hand Held Programmer
MS-2 CCD Reader User`s Manual
1771-6.5.123, ControlNet Adapter Module, User Manual
Rockwell Automation