Chapter 13 Macro
13-31
13
Mac
ro Co
mma
nds
•
Memory card
- File number, word address in the record, record number
Refer to the memory map included in “Chapter 25 Memory Card Mode.”
When accessing a word from the PLC memory, the word in n + 2 is usually “0”
even for memory that does not use an expansion code.
Example: Accessing a Mitsubishi PLC D165
(Macro)
$u100 = 0100H
Model: 01 (PLC memory) Memory type: 00
$u101 = 0165
Memory No.: 165
$u102 = 0000
Expansion code: No
$u200 = *$u100
(Result of execution)
Data in D165 is transferred to $u200.
When accessing the bit-writable memory, such as the Mitsubishi M Relay, the
following setting is necessary.
Memory number = M (address)/16
Example: To access M20:
(Macro)
$u100 = 0106H
Model: 01 (PLC memory) Memory type: 06
$u101 = 0001
Memory No = 20
÷
16 = 1...4
$u102 = 0000
Expansion code: No
$u200 = *$u100
(Result of execution)
Data in M16 to 31 is transferred to $u200.
Bit 4 of $u200 becomes the bit for M20.
15
MSB
8
7
LSB
0
n + 0
02H
File number
n + 1
Word address in the record
n + 2
Record number
For Yokogawa or Yaskawa PLCs, specify a value of “memory number address
−
1.”
Example: Address
400
→
399
25
→
24
Содержание Monitouch V Series
Страница 1: ...Function Hakko Electronics Co Ltd...
Страница 3: ......
Страница 11: ......
Страница 35: ......
Страница 36: ...System Setting...
Страница 37: ......
Страница 64: ...Basic Functions...
Страница 65: ......
Страница 95: ...Chapter 2 Overlap 2 30 Please use this page freely...
Страница 139: ...Chapter 4 Lamp 4 14 Please use this page freely...
Страница 163: ...Chapter 5 Data Display 5 24 Please use this page freely...
Страница 191: ...Chapter 6 Message Display Relay Message 6 28 Please use this page freely...
Страница 427: ...Chapter 13 Macro 13 44 Please use this page freely...
Страница 454: ...Special Functions...
Страница 455: ......
Страница 507: ...Chapter 18 Video Display V7i Only 18 32 Please use this page freely...
Страница 647: ...Chapter 27 E Mail 27 6 Please use this page freely...
Страница 667: ...Chapter 28 Web Server 28 20 Please use this page freely...
Страница 690: ...Appendix...
Страница 691: ......
Страница 714: ...Appendix 1 Internal Memory A1 23 A1 System Memory Please use this page freely...
Страница 715: ...Appendix 1 Internal Memory A1 24...
Страница 737: ...Appendix 3 Error A3 16 Please use this page freely...
Страница 745: ......