FE MONITOUCH V8 SERIES Reference: Additional Functions page 310

Table of Contents

Advertisement

MES WRITE (F1, F2, F3)
Function: Adding data to the database
This macro is used to add the data set in the [Write] tab window under MES setting No. [F3] to the
database. The data will be added via the V-Server at the location specified in table No. [F2]. The
result will be stored in memory at the return address [F1].
Available memory
Internal Memory
F1
F2
F3
Range
MES WRITE
F0
Return address
F1
F2
0 to 99: Network table number
0 to 255: MES setting number
F3
Example
• MES WRITE ($u0000, 10, 0)
The above program adds data to the database in the computer specified in network table No. 10.
The data to be added depends on the settings made in MES setting No. 0.
When the data addition is completed normally, the returned value 0 will be stored in memory at
the return address $u0000.
Supplementary information
• With $s514, you can set the execution style of the macro. For more information, refer to the V8
Series Connection Manual.
• The result of the macro execution is stored in memory at $s515.
-40: The [Write] tab window setting is not made in the specified MES setting number, or any
setting error is found.
For information on other error numbers, refer to the V8 Series Connection Manual.
• The returned value will not be placed at the address [F1] immediately. The [F1] address can be
monitored by the event timer macro, etc.
• The primary key for the V-Server must be set for the database table (page 20-36).
PLC1 - PLC8
Memory
: Setting enabled (indirect designation disabled)
: Setting enabled (indirect designation enabled)
Value
MES setting No. 0
Network table No. 10
Return address
20
MES Interface Function
Memory Card
Constant
Returned value
0: Normally finished
−1: End in error
20
20-21

Advertisement

Table of Contents
loading

Table of Contents