Omron NS - HOST Connection Manual page 48

Ns-series programmable terminals
Table of Contents

Advertisement

RB
Read PT memory ($B)
Read $B data in PT memory.
Per command, a maximum of 100 bits can be read.
After reading, bit data are displayed and returned per 8 bits as 8 bit value.
Command format
ESC command *S
$1B
R
[Settings]
*S
BCD1digit
0
1
8
9
*A
0000
7FFF
*L
00 to 99
Response format
ESC command
$1B
R
[Settings]
*A
0000
7FFF
*L
00 to 99
*D
00 to FF
*A
B
Sum
value
OFF
ON
OFF
ON
to
Initial address No. (hexadecimal 4 digits)
Read-out bit number (BCD 2 digits)
00 indicates 100.
*A
B
to
Initial address No. (hexadecimal 4 digits)
Number of bits (BCD 2 digits)
00 indicates 100.
Bit data (hexadecimal 2 digit value of 8 bits each)
0:OFF, 1: ON
Fills addresses in ascending order starting with first digit.
Turns 8 bits into a binary 8 digit value and displays this as a
hexadecimal 2 digit value. The next hexadecimal 2 digit
value continues with the following 8 bits.
Fills any of the last 8 bits that does not actually have a valid
read-out data with 0.
[example]
from $B10 6 bits have read-out value
*L
Number of tables: 1 (fixed). Omit Parameter2.
*L
*D
Variable
length
SUM
CR
$0D
SUM
CR
$0D
11

Advertisement

Table of Contents
loading

Table of Contents