Examples Of Actual Applications Of Memory Link - Omron NT631 Series Reference Manual

Programmable terminals
Hide thumbs Also See for NT631 Series:
Table of Contents

Advertisement

Examples of Actual Applications of Memory Link

5-2
Examples of Actual Applications of Memory Link
Switching screen by the operation at PT control area
Example:
Downloaded from
Elcodis.com
electronic components distributor
Some examples that will give you an idea of how to actually apply the memory
link are presented below.
• Switching screen by the operation at PT control area
• To know the event that a numeral/character string is input to PT Page 406
The examples below give you the explanation centered on which commands are
sent to apply the function and the method to use the responses returned from PT.
For method on using programming language which is run at the host, refer to the
manual of each programming language etc. For details of commands used with
memory link, refer to Section 4 Using Memory Link.
Switching screen by the operation at PT control area:
Allocated word in PT control area: 0100CH
Use PT memory write command (sent from host to PT) for this case since it is
necessary to write new screen number to the first word in PT control area.
• Command
[ESC]
W
M
8
1B
57
4D
38
(1)
• Explanation
1, 2, 3...
1. Write attribute: Check sum absent, SET attribute (writing 1 word)
2. First word No. written:
Number of words written:
3. Data of written word:
Screen switch is executed by writing the screen number to the first word in PT
control area.
In this example, screen is switched from screen No.10 to screen No.15.
000F is specified in the example above since it is necessary to specify data of
written word in PT memory write command in binary.
If Yes is set for the Response memory switch for the communication setting of
memory link, the response indicated below is returned from PT after sending
command. (If No is set, no responses will be returned.)
PT
Screen No. 10
Screen No. 15
0
1
0
0
0
30
31
30
30
30
(2)
0100CH
Omitted, since the write attribute is as above.
000F
Section
Host
Command
0
0
F
[CR]
30
30
46
0D
(3)
H
5-2
Page 405
405

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nt31 seriesNt21 seriesNt31c seriesNt631c series

Table of Contents