Using Index Registers To Modify Operands; Instruction Index - Delta Electronics AH500 Manual

Motion control module
Hide thumbs Also See for AH500:
Table of Contents

Advertisement

A H 5 00 M o ti on C on tr ol M od ul e Ma nua l
Exponent: D1=-41~+35
Besides, the base 100 does not exist in D0 because 100 is represented by 1,000×10
decimal floating-point number is in the range of ±1,175×10
 If the instruction ADD/SUB/MUL/DIV is used in the main program O100~M102, the operation
result gotten will affect the states of SM968~SM970. If a floating-point operation instruction is
used, the result gotten will also affect the state of the zero flag SM968, the state of the borrow
flag SM969, and the state of the carry flag SM970.
Zero flag: If the operation result gotten is 0, SM968 will be ON.
Borrow flag: If the absolute value of the operation result gotten is less than the minimum
value allowed, SM969 will be ON.
Carry flag: If the absolute value of the operaiton result gotten is greater than the maximum
value allowed, SM970 will be ON.

5.4 Using Index Registers to Modify Operands

V devices are 16-bit index registers. There are 6 V devices (V0~V5). Z devices are 32-bit index
registers. There are 8 Z devices (Z0~Z7).
16 bits
32 bits
High byte
Low byte
Index registers can be used to modify X/Y/M/S/KnM/KnS/T/C/D/SM/SR devices, but they can not be
used to modify index registers, constants, and Kn. For example, K4@Z0 is invalid, K4M0@Z0 is
valid, and K0@Z0M0 is invalid. The devices marked with "●" in the table in the explanation of an
applied instruction can be modified by V devices and Z devices.

5.5 Instruction Index

Arranging applied instructions in alphabetical order
Instruction code
Type API
16-bit
32-bit
87 ABS
DABS
20 ADD
DADD
134
DACOS
172
DADDR
66 ALT
218 AND& DAND&
220 AND^
DAND^
219 AND|
DAND|
A
234 AND< DAND<
237 AND<= DAND<=
236 AND<> DAND<>
232 AND= DAND=
233 AND> DAND>
238 AND>= DAND>=
47 ANR
46 ANS
V0~V7
V devices are 16-bit registers. Data can be freely
written into a V device, and data can be freely read
from a V device. If a 32-bit value is required, please
use a Z device.
Z 0~ Z7
Pulse
instruction
Absolute value
Binary addition
Arccosine of a binary
floating-point number
Floating-point addition
Alternating between ON and OFF
S1&S2
S1^S2
S1|S2
S1<S2
S1≦S2
S1≠S2
S1=S2
S1>S2
S1≧S2
Resetting an annunciator
Driving an annunciator
-41
to ±3,402×10
Function
16-bit 32-bit
-1
. A
+35
.
Step
Page
number
3
3
5-75
7
9
5-36
6
5-98
9
5-103
3
-
5-72
5
7
5-108
5
7
5-108
5
7
5-108
5
7
5-111
5
7
5-111
5
7
5-111
5
7
5-111
5
7
5-111
5
7
5-111
1
5-66
7
5-65
5 - 1 4

Advertisement

Table of Contents
loading

Table of Contents