C h a p t e r 5 A p p l i e d I n s t r u c t i o n s
4. If a 32-bit instruction uses D0 as an operand, the 32-bit data register composed of D1 and
D0 will be used. D1 occupies the high 16 bits, and D0 occupy the low 16 bits. Timers and
the 16-bit counters C0~C199 can be used in the same way.
5. If the 32-bit counters C240~C255 are used as data registers, they can be operands used by
32-bit instructions.
Operand
type
1. X devices, Y devices, M devices, and S devices can only be turned ON or OFF. They are bit
devices.
2. 16-bit (or 32-bit) T devices, C device, D devices, V devices, and Z devices are word
devices.
3. If Kn is added to the front of an M/S device, a word device will be formed. For example,
K2M0 represents a device composed of the eight bit devices M0~M7.
X0.0
K 2M 0
D 10
MO V
When X0.0 is ON, the values of M0~M7
are moved to bit 0~bit 7 in D10, and bit
8~bit 15 are set to 0.
Values in word device composed of bit devices
16-bit instruction
32-bit instruction
A 16-bit value is in the range of K-32,768 to
K32,767.
A 32-bit value is in the range of
K-2,147,483,648 to K2,147,483,647.
Value in a word device composed of bit devices
Value in a word device composed of bit devices
K1 (4 bits)
0~15
K1 (4 bits)
0~15
K2 (8 bits)
0~255
K2 (8 bits)
0~255
K3 (12 bits)
0~4,095
K3 (12 bits)
0~4,095
K4 (16 bits)
-32,768~+32,767
K4 (16 bits)
0~65,535
K5 (20 bits)
0~1,048,575
K6 (24 bits)
0~167,772,165
K7 (28 bits)
0~268,435,455
K8 (32 bits)
-2,147,483,648~+2,147,483,647
General
flags
Every flag in a module corresponds to an operation result.
Example: SM968 is a zero flag, SM969 is a borrow flag, and SM970 is a carry flag
The state of a flag varies with an operation result. For example, 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. However, if the instruciton is not executed, the states of the
flags will remain unchanged. The states of flags are related to instructions. Please refer to the
explanations of instructions for more information.
5.3
Processing Values
X devices, Y devices, M devices, and S devices can only be turned ON or OFF. They are bit
devices. Values can be stored in T device, C devices, D devices, V devices, and Z devices.
They are word devices. If Kn is added to the front of an M/S device, a word device will be
formed.
If Kn is added to the front of an M/S device, a word device will be formed. For example, K2M0
represents a device composed of the eight bit devices M0~M7.
5 - 11
Содержание AH500
Страница 9: ...viii...
Страница 52: ...Chapter 2 Hardware Specifications and Wiring Wiring AH10PM 5A and a Panasonic CN5 series servo drive 2 31...
Страница 53: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Yaskawa servo drive 2 32...
Страница 54: ...Chapter 2 Hardware Specifications and Wiring Wiring AH10PM 5A and a Mitsubishi MJR2 series servo drive 2 33...
Страница 55: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Fuji servo drive 2 34...
Страница 115: ...AH500 Motion Control Module Manual 4 16 MEMO...
Страница 375: ...AH500 Motion Control Module Manual 5 260 MEMO...
Страница 376: ...Chapter 6 Data Transmission Table of Contents 6 1 Functions 6 2 6 2 Parameters 6 2 6 3 Usage 6 5 6 1...
Страница 383: ...AH500 Motion Control Module Manual 6 8 MEMO...
Страница 419: ...AH500 Motion Control Module Manual 7 36 MEMO...
Страница 436: ...Chapter 8 Electronic Cam 8 17...
Страница 482: ...Chapter 10 High speed Counters and High speed Timers 3 The cyclic mode is used to measure a frequency 10 7...
Страница 483: ...AH500 Motion Control Module Manual 10 8 MEMO...
Страница 505: ...AH500 Motion Control Module Manual 12 8 MEMO...
Страница 515: ...AH500 Motion Control Module Manual 13 10 MEMO...
Страница 544: ...Appendix A Error Code Table Table of Contents A 1 Error Code Table A 2 A 1...
Страница 547: ...AH500 Motion Control Module Manual A 4 MEMO...