Omron C200H-ASC11 Manual page 198

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

Advertisement

Details of BASIC Commands
pc eget
Syntax:
[<result> = ]
<variable> {, <variable>}
Description:
Statement. Reads data from the common memory area of the ASCII Unit.
Remarks:
<common memory address> gives the starting address in common memory area of the data to be
read. It is an integer with a valid range of : [0...89].
<number> is the number of words of data to read. It is an integer value with a range of : [1...90].
<pc format> gives the format of the variables that are retrieved. The allowable formats in the
format string are outlined in
limited by the size of the input buffer allowed to enter a single program line.
<variable> is any valid variable name. It must be of the same type as specified in the format
string.
The
<result> indicates the success, or otherwise of the
command was successfully carried out and the data read is valid. If the <result> is -1 then the
EGET
EGET
If the format string and the variable types do not match then a "FORMAT ERROR" (code B067)
will occur. Also if the format string specifies more memory than is allocated in the common
memory area then a "FORMAT ERROR" (code B067) will result.
The data in the common memory area should first be prepared by the IOWR #00xx command in
the PLC program. this command is used to write up to 90 words of data from the PLC to the
common data area of the ASCII Unit. There is no synchronization between the
in the BASIC program and the IOWR #00xx command in the PLC program.
For a detailed description of how to use the
command refer to 6.3. Details of the Data Exchange Methods.
Examples:
See also:
PC EPUT
#<common memory address> , <number>, "<pc format> {, <pc format>}";
PC EGET
PC READ
command can optionally return a <result> that can be assigned to a variable. This
PC EGET
could not be carried out because the common memory area was being used by another
.
HEX 4 digits
HEX 4 digits
PC EGET #0, 4, "1H4, 1H4, 2H4"; A, B, C$
,
PC GET
. Of course the complexity of the format string is ultimately
command. If the <result> is 0 then the
PC EGET
statement and the IOWR #00xx PLC
PC EGET
7-6
Section
PC
PC
command
PC EGET
189

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200h-asc21C200h-asc31

Table of Contents