Omron NS - HOST Connection Manual page 52

Ns-series programmable terminals
Table of Contents

Advertisement

WB
Write PT memory ($B)
Write to $B data in PT memory.
Per command, a maximum of 100 bits can be written.
Command format
ESC
$1B
[Settings]
*S
*A
*L
*D
Normal completion response format (only when response under
communications conditions is ON).
ESC
$1B
[Settings]
*D
command
*S
*A
W
B
BCD1 digit
SUM value
0
OFF
1
ON
8
OFF
9
ON
0000to7FFF
Initial address number (hexadecimal 4 digits)
00to99
Entry bit number (BCD 2 digits)
When 00, 100 is meant.
00 to FF
Bit data (hexadecimal 1 digit value for 4 bits each)
0: OFF, 1: ON
Fills data in descending order starting with first digit.
Turns 4 bits into a binary 4 digit value and displays this
as a hexadecimal 1 digit value. The next hexadecimal 1
digit value continues with the following 4 bits.
Fills any of the last 4 bits that does not actually have a
valid read-out data with 0.
[example]
from $B10, 6 bits have read-out value
$B10 11 12 13 14 15
hexadecimal form)
command
*D
W
B
00 fixed. Indicates normal completion.
*L
Bit number: 1 fixed. Parameter 2 omitted.
*
1
0
1
0
1
1
SUM
CR
$0D
*D
SUM
Variable
length
*
0 → AC (converted to
0
CR
$0D
15

Advertisement

Table of Contents
loading

Table of Contents