All BASIC commands
Section 4-2
214
4-2-181 PLC_EXCHANGE
/i
Type
System command
Syntax
PLC_EXCHANGE(0, area_code)
PLC_EXCHANGE(1, area_code, plc_area, plc_start, tj_area,
tj_start, total_items)
Description
PLC_EXCHANGE(0, ...)
prints the mapping of the PLC memory area
specified by
area_code
to the CJ1W-MCH72 memory. The output of
this command is:
area_code
,
plc_area
,
plc_start
,
tj_area
,
tj_start
,
total_items
.
PLC_EXCHANGE(1, ...)
configures the mapping of the PLC memory to
the CJ1W-MCH72 memory.
Arguments
•
area_code
The PLC area. Possible values in hexadecimal are:
-
0100..0107 for PLC output area (8 areas available)
-
8100..8107 for PLC input area (8 areas available)
•
plc_area
The PLC memory area used for data exchange. Possible values in
hexadecimal are:
-
01 : CIO
-
03 : DM
-
04 : WR
-
05 : HR
-
08..14 : EM bank 0..C
•
plc_start
The start address in PLC memory.
Note: The validity depends on
plc_area
.
•
tj_area
The CJ1W-MCH72 memory area used for data exchange. Possible
values are:
-
00 : VR 16-bit signed integer
-
01 : VR 32-bit floating point
-
02 : IN or OP array, depending on direction
-
03 : AIN or AOUT array, depending on direction
-
04 : Axis Status array, only valid if direction is PLC input
•
tj_start
The tart address in CJ1W-MCH72 memory.
Note: The validity depends on
tj_area
.
Note: The first 16 entries in the IN array are invalid start addresses.
•
total_items
The total number of items (words and dwords) to transfer
Note: The validity depends on
plc_area
and
tj_area
.
Note: The total number of words configured for all blocks may not
exceed 2000. A floating point value corresponds to 2 words.
Example
No example.
See also
PLC_STATUS
Summary of Contents for SYSMAC CJ Series
Page 2: ......
Page 70: ...Specifications Section 2 4 58...
Page 84: ...FINS commands Section 3 4 72...
Page 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Page 370: ...Section 358...