4-3SectionCommands/Responses
381
4-3-7 PT Memory Write Command (Sent from Host to PT)
Command
Format
Data of 1 word Data of 1 word
m
1B 57
[ESC] W
c3 c4
4D
Mc1 (l1) (l2)c2
2C
0D
d11 d1m
,
dn1 dnm
(s1) (s2) [CR]
* * * * * * * * * * * * * *
* * * * * * * * * * * *
m Checksum present/absent, write attribute (1 BCD digit)
0: Absent, SET attribute
1: Present, SET attribute
2: Absent, AND attribute
3: Present, AND attribute
4: Absent, OR attribute
5: Present, OR attribute
6: Absent, XOR attribute
7: Present, XOR attribute
8: Absent, SET attribute (writing 1 word)
9: Present, SET attribute (writing 1 word)
c
1
to c
4
: First word address written (4 BCD digits)
0000 to 9999
l
1
, l
2
: Number of words written (2 BCD digits)
01 to 50:1 to 50 words
If m is 8 or 9, omit this setting.
d1
1
to d1
m
, ..., dn
1
to dn
m
:
Data of written words (1 to 4 hexadecimal digits)
0 to FFFF
H
It is possible to omit initial zeroes so that there are less than 4
digits.
s
1
, s
2
: Checksum (2 hexadecimal digits)
If m is an even number, omit this setting.
Response
Only if Yes is set for the Response memory switch, the response indicated below
is returned on normal completion.
Format
1B 57
[ESC] [CR]W
4630 31 0D4D
M
30
0 0 s1 s2
s
1
, s
2
: Checksum (2 hexadecimal digits)
This is always added (fixed as 1FH).
Function
• Writes the data of the specified number of words starting from the specified
word in the PT memory.
• The result after executing the specified operation (write attribute) on the pres-
ent contents of the PT memory and the written data is written is as follows:
• A maximum of 50 words can be written at one time.
The write attribute specified by a command executes the following operation on
the present data of the PT memory and the written data and writes the result.
• SET attribute: Specified data is written as it is regardless of the present data
of PT.