Memory Areas; Reading/Writing To The Cyclic Area Using Pc Read/Pc Write - Omron SYSMAC CV500-BSC11 Operation Manual

Basic units
Table of Contents

Advertisement

Memory Areas

Direction
CPU Unit to BASIC
N
Unit
N+1 to N+14
BASIC Unit to CPU
N+15
Unit
U i
N+16
N+17
N+18 to N+24

3-1-2 Reading/Writing to the Cyclic Area Using PC READ/PC WRITE

Instruction
PC READ
@SQ
PC WRITE
@SI
Example
Word
00 to 15
00
01
02
03
15
00 to 07
08
09
10
11
15
The memory switch can be used to change the cyclic area allocations.
The method for reading from or writing to the cyclic area in the CPU Unit using
the PC READ and PC WRITE instructions in the BASIC program of the BASIC
Unit is described here.
Input the following codes as the subcommands to specify the cyclic area using
the PC READ and PC WRITE instructions in the BASIC program. (Refer to the
SYSMAC BASIC Units Reference Manual (W207–E1–2) for information on the
format of the PC READ and PC WRITE instructions.)
Subcommand
Cyclic output area
(Direction: CPU Unit
to BASIC Unit)
Cyclic input area
(Direction: BASIC Unit
to CPU Unit)
This example is for a cyclic area as follows:
Output area (CPU Unit to BASIC Unit): DM 12000 to DM 12009
Input area (CPU Unit to BASIC Unit): DM 12010 to DM 12019
Bit
Name
System Setup
User area
Task status display
Memory overflow
Compilation error
(error code 000 to
255)
Compilation error
(error code 256 or
higher)
E code error
Battery error
Error code
Execution error
Port 1 error
Port 2 error
Port 3 error
BASIC RUN
User area
Area
First transfer word
0 to (maximum
number of words –1)
3 to (maximum
number of words –1)
Section 3-1
Remarks
Data written from the
CPU Unit to these
words can be read to
words can be read to
the BASIC Unit using
PC READ "@SQ...."
Data written using PC
WRITE "SI..." from
the BASIC Unit is
output here.
Number of transfer
words
1 to maximum
number of words
1 to maximum
number of words
25

Advertisement

Table of Contents
loading

Table of Contents