Omron C200H-ASC11 Manual page 210

Ascii units
Hide thumbs Also See for C200H-ASC11:
Table of Contents

Advertisement

Details of BASIC Commands
pc write
Syntax:
[<result> = ]
expression>}
Description:
Statement. When a
the specified PC data area in the specified PC format.
Remarks:
The <pc format> indicates the data format of the specified data. The following table shows the
various data formats that can be specified.
Format
I Format
H Format
O Format
B Format
"<pc format> {, <pc format>}"; <numeric expression> {, <numeric
PC WRITE
request is received from the CPU Unit, the variable data is written to
PC WRITE
Syntax
Description
m I n
Takes the first n digits of data from each of the m variables,
converts the data to BCD, and stores it in the first n digits of the
each of the m data area words.
m : number of words
n : number of digits written to each word (1 to 4)
n
Digits written
1
digit 1 (bits 0-3)
2
digits 1-2 (bits 0-7)
3
digits 1-3 (bits 0-11)
4
digits 1-4 (bits 0-15)
m H n
Takes the first n digits of data from each of the m variables,
converts the data to hexadecimal, and stores it in the first n digits of
the each of the m data area words.
m : number of words
n : number of digits written to each word (1 to 4)
n
Digits written
1
digit 1 (bits 0-3)
2
digits 1-2 (bits 0-7)
3
digits 1-3 (bits 0-11)
4
digits 1-4 (bits 0-15)
m O n
Takes the first n digits of data from each of the m variables,
converts the data to octal, and stores it in the first n digits of the
each of the m data area words.
m : number of words
n : number of digits written to each word (1 to 4)
n
Digits read
1
digit 1 (bits 0-3)
2
digits 1-2 (bits 0-7)
3
digits 1-3 (bits 0-11)
4
digits 1-4 (bits 0-15)
m B n
Treats the data in each of the m variables as decimal, converts the
data to binary, and stores only the n
0) in each of the m data area words.
m : number of words
n : bit specified in the word (0 to 15)
n
Specified bit
0
bit 0
1
bit 1
2
bit 2
Section
th
bit's value (treating the rest as
7-6
201

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200h-asc21C200h-asc31

Table of Contents