![background image](http://html1.mh-extra.com/html/hakko-electronics/monitouch-v-series/monitouch-v-series_reference-manual_3315280414.webp)
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
Summary of Contents for Monitouch V Series
Page 1: ...Function Hakko Electronics Co Ltd...
Page 3: ......
Page 11: ......
Page 35: ......
Page 36: ...System Setting...
Page 37: ......
Page 64: ...Basic Functions...
Page 65: ......
Page 95: ...Chapter 2 Overlap 2 30 Please use this page freely...
Page 139: ...Chapter 4 Lamp 4 14 Please use this page freely...
Page 163: ...Chapter 5 Data Display 5 24 Please use this page freely...
Page 191: ...Chapter 6 Message Display Relay Message 6 28 Please use this page freely...
Page 427: ...Chapter 13 Macro 13 44 Please use this page freely...
Page 454: ...Special Functions...
Page 455: ......
Page 507: ...Chapter 18 Video Display V7i Only 18 32 Please use this page freely...
Page 647: ...Chapter 27 E Mail 27 6 Please use this page freely...
Page 667: ...Chapter 28 Web Server 28 20 Please use this page freely...
Page 690: ...Appendix...
Page 691: ......
Page 714: ...Appendix 1 Internal Memory A1 23 A1 System Memory Please use this page freely...
Page 715: ...Appendix 1 Internal Memory A1 24...
Page 737: ...Appendix 3 Error A3 16 Please use this page freely...
Page 745: ......