Data Transfer Examples; Transmission Bits And Flags; Reception Bits And Flags; Data Transmission - Omron C200H-MC221 Operation Manual

Motion control unit
Hide thumbs Also See for C200H-MC221:
Table of Contents

Advertisement

Data Transfer Examples

4-5-3 Transmission Bits and Flags

Transmission Control Bit
Transmission Completed Flag This flag is turned ON when transmission is completed. It is allocated in the I/O
Transmission Error Flag

4-5-4 Reception Bits and Flags

Reception Control Bit
Reception Completed Flag
Reception Error Flag
4-6

Data Transfer Examples

4-6-1 Data Transmission

Example 1
1, 2, 3...
52
The data writing source word and data reading destination word can be desig-
nated within the ranges shown in the following table.
PC model
C200H
DM 0000 to DM 0899
C200HS
DM 0000 to DM 0999
DM 2000 to DM 5999
C200HX,
EM area (if the EM area is unavailable)
C200HG,
DM 0000 to DM 0999
and
DM 2600 to DM 5999 (The upper limit depends on the memory size.)
C200HE
EM area (if the EM area is available)
DM 0000 to DM 0999
DM 2600 to DM 5999 (The upper limit depends on the memory size.)
EM 0000 to EM 6143
Note The DM area or EM area to be used can be specified in the initial setting area.
Refer to 6-4-1 Initial Setting Area.
The following bits and flags are used for transmission.
This bit is used to control transmission. It is allocated in the I/O refresh area of the
PC data area interface. Data transmission begins when this bit goes ON.
refresh area of the PC data area interface. This flag goes ON when transmission
is completed and goes OFF when the Transmission Control Bit is turned OFF.
This flag is turned ON if data transmission has not been completed properly due
to an error during data transmission.
The following bits and flags are used for reception.
This bit is used to control reception. It is allocated in the I/O refresh area of the PC
data area interface. Data reception beings when this bit goes ON.
This flag is turned ON when reception is completed. It is allocated in the I/O
refresh area of the PC data area interface. This flag goes ON when reception is
completed and goes OFF when the Reception Control Bit is turned OFF.
This flag is turned ON if data reception has not been completed properly due to
an error during data reception.
This section provides examples of data transmission using the C200HS with the
MC Unit, the unit number of which is set to 0.
The following data items are transmitted to position data address A0456 to
A0460.
Position data
345678.90
. . . . . . . . . . .
123456.78
. . . . . . . . . . .
–387654.32
. . . . . . . . . .
123.456
. . . . . . . . . . . . .
54321.00
. . . . . . . . . . . .
1. Set the data described below in the initial setting area with the Programming
Console.
Expansion data area
Position data address
A0456
A0457
A0458
A0459
A0460
Section 4-6

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents