Sysmac CJ Series CJ1W-CIF21 Simple Communications Unit: Operation Manual
Sysmac CJ Series CJ1W-CIF21 Simple Communications Unit: Operation Manual
Sysmac CJ Series CJ1W-CIF21 Simple Communications Unit: Operation Manual
CJ1W-CIF21
Simple Communications Unit
Operation Manual
Produced September 2001
iv
Notice:
OMRON products are manufactured for use according to proper procedures by a qualified operator
and only for the purposes described in this manual.
The following conventions are used to indicate and classify precautions in this manual. Always heed
the information provided with them. Failure to heed precautions can result in injury to people or dam-
age to property.
'$1*(5 Indicates an imminently hazardous situation which, if not avoided, will result in death or
serious injury.
:$51,1* Indicates a potentially hazardous situation which, if not avoided, could result in death or
serious injury.
&DXWLRQ Indicates a potentially hazardous situation which, if not avoided, may result in minor or
moderate injury, or property damage.
Visual Aids
The following headings appear in the left column of the manual to help you locate different types of
information.
Note Indicates information of particular interest for efficient and convenient opera-
tion of the product.
Indicates supplementary information on related topics that may be of interest to the user.
1,2,3... 1. Indicates lists of one sort or another, such as procedures, checklists, etc.
¸ OMRON, 2001
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or
by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission of
OMRON.
No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is con-
stantly striving to improve its high-quality products, the information contained in this manual is subject to change without
notice. Every precaution has been taken in the preparation of this manual. Nevertheless, OMRON assumes no responsibility
for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained in
this publication.
v
vi
TABLE OF CONTENTS
PRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
1 Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
2 General Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
3 Safety Precautions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
4 Application Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
5 Operating Environment Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
6 Conformance to EC Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
SECTION 1
Features and System Configuration . . . . . . . . . . . . . . . . . . . 1
1-1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1-2 Processing Component Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
SECTION 2
Unit Components and Specifications . . . . . . . . . . . . . . . . . . 9
2-1 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2-2 Component Names and Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
SECTION 3
Preparation for Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3-1 Procedure Outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3-2 Installation and Power Supply Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
3-3 Simple Communications Unit Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3-4 Simple Communications Unit Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3-5 PC Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3-6 Connected Component Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3-7 DM Settings and Component Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3-8 Precautions for Component Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3-9 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
SECTION 4
Allocations in the DM Area . . . . . . . . . . . . . . . . . . . . . . . . . . 33
4-1 Data Memory (DM) Allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
4-2 Shared Area. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
4-3 Individual Unit Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Appendices
A Data Refresh Cycle (Reference Data) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
B Example Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
C DM Area Settings Assignment Sheets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
vii
About this Manual:
This manual describes the installation and operation of the CJ1W-CIF21 Simple Communications Unit
and includes the sections described below.
Please read this manual and all of the related manuals carefully and be sure you understand the infor-
mation provided before attempting to install and operate the CJ1W-CIF21 Simple Communications
Unit.
Section 1 describes the features and system configuration of the CJ1W-CIF21 Simple Communica-
tions Unit.
Section 2 provides specifications for the CJ1W-CIF21 Simple Communications Unit and describes the
functions of each component.
Section 3 describes preparatory procedures from installation of the CJ1W-CIF21 Simple Communica-
tions Unit to operation of the Unit.
Section 4 describes the interface with the Components provided in the DM Area of the CPU Unit.
The Appendices provide information on the data refresh cycle, an application example, and DM Area
settings assignment sheets.
Details on CPU Unit, Serial Communications Board, and Serial Communications Unit operation can be
found in the following manuals.
Manual Cat. No.
SYSMAC CJ Series W393
CJ1G-CPU##/CJ1G/H-CPU##H
Programmable Controllers Operation Manual
SYSMAC CS Series W339
CS1G/H-CPU##-EV1, CS1G/H-CPU##H
Programmable Controllers Operation Manual
SYSMAC CS/CJ Series W336
CS1W-SCB21/41, CS1W-SCU21, CJ1W-SCU41
Serial Communications Boards/Units Operation Manual
SYSMAC CQM1H Series W363
CQM1H-CPU## Programmable Controllers
CQM1H-##### Inner Boards
Operation Manual
SYSMAC CQM1H Series W365
CQM1H-SCB41 Serial Communications Boards
Operation Manual
SYSMAC CPM2A W352
Programmable Controllers
Operation Manual
ix
PRECAUTIONS
This section provides general precautions for using the CJ1W-CIF21 Simple Communications Unit.
The information contained in this section is important for the safe and reliable application of Programmable
Controllers. You must read this section and understand the information contained before attempting to set up
or operate a PC system.
xi
Intended Audience 1
1 Intended Audience
This manual is intended for the following personnel, who must also have
knowledge of electrical systems (an electrical engineer or the equivalent).
• Personnel in charge of installing FA systems.
• Personnel in charge of designing FA systems.
• Personnel in charge of managing FA systems and facilities.
2 General Precautions
The user must operate the product according to the performance specifica-
tions described in the operation manuals.
Before using the product under conditions which are not described in the
manual or applying the product to nuclear control systems, railroad systems,
aviation systems, vehicles, combustion systems, medical equipment, amuse-
ment machines, safety equipment, and other systems, machines, and equip-
ment that may have a serious influence on lives and property if used
improperly, consult your OMRON representative.
Make sure that the ratings and performance characteristics of the product are
sufficient for the systems, machines, and equipment, and be sure to provide
the systems, machines, and equipment with double safety mechanisms.
This manual provides information for programming and operating the Unit. Be
sure to read this manual before attempting to use the Unit and keep this man-
ual close at hand for reference during operation.
:$51,1* It is extremely important that a PC and all PC Units be used for the specified
purpose and under the specified conditions, especially in applications that can
directly or indirectly affect human life. You must consult with your OMRON
representative before applying a PC System to the above-mentioned applica-
tions.
3 Safety Precautions
:$51,1* Do not attempt to take any Unit apart while the power is being supplied. Doing
so may result in electric shock.
:$51,1* Do not touch any of the terminals or terminal blocks while the power is being
supplied. Doing so may result in electric shock.
&DXWLRQ Tighten the terminal screws on the communication cable screws to the torque
specified in this manual.
&DXWLRQ Refer to this manual when making settings and set the Simple Communica-
tions Unit correctly. Incorrect settings can cause unexpected operation and
may result in property damage or injury.
xii
Application Precautions 4
4 Application Precautions
&DXWLRQ Failure to abide by the following precautions could lead to faulty operation of
the PC or the system, or could damage the PC or PC Units. Always heed
these precautions.
• When transporting the Unit, use special packing boxes. Be careful not to
allow excessive vibration or shock to be applied during transportation and
not to drop the products.
• Store the Unit within the following temperature and humidity ranges:
Storage temperature: –20 to 75C
Storage humidity: 10% to 90% (with no icing or condensation)
• Install the Unit properly so that it does not fall.
• Always use the power supply voltage specified in the operation manual.
An incorrect voltage may result in malfunction or burning.
• Set the communications distance to within the range specified in the oper-
ation manual.
• Do not place communications cables close to or parallel to high-voltage
lines or power lines.
• Be sure to attach the labels supplied with the Unit or provide other protec-
tive covers when wiring in order to prevent dust or wire cuttings from
entering the Unit.
• Remove the label after the completion of wiring to ensure proper heat dis-
sipation. Leaving the label attached may result in malfunction.
• Wire terminals or connectors with the correct polarity and direction.
• Double-check all the wiring or the setting switches before turning ON the
power supply. Incorrect wiring may result in burning.
• Before touching the Unit, be sure to first touch a grounded metallic object
in order to discharge any static built-up. Not doing so may result in mal-
function or damage.
• Use the specified connectors or wires.
Terminal block for RS-422/485: AWG 28 to AWG 16, stripped wire length:
7 mm
• Always turn OFF the power supply to the PC before attempting any of the
following. Not turning OFF the power supply may result in malfunction or
electric shock.
• Assembling the Units
• Connecting or wiring the cables
• Connecting or disconnecting the connectors
• Use the communications cables specified in the operation manual.
• Always use the power supply voltages specified in the operation manual.
An incorrect voltage may result in malfunction or burning.
• Double-check the polarity when connecting the RS-422/485. Some
devices may have reverse polarity (+/–) for SDA/SDB and RDA/RDB.
• When using the RS-422/485, operate only after confirming that terminat-
ing resistance has been set correctly.
• Do not pull on the cables or bend the cables beyond their natural limit.
Doing either of these may break the cables.
• Do not place objects on the cables. Doing so may break the cables.
xiii
Operating Environment Precautions 5
• Be sure that the terminal blocks, connectors, and other items with locking
devices are properly locked into place. Improper locking may result in
malfunction.
• Use the Unit with the cover mounted properly.
• Wire correctly as specified in the operation manual.
• Take appropriate measures to ensure that the specified power with the
rated voltage and frequency is supplied. Be particularly careful in places
where the power supply is unstable. An incorrect power supply may result
in malfunction.
xiv
Conformance to EC Directives 6
6 Conformance to EC Directives
6-1 Applicable Directives
• EMC Directives
• Low Voltage Directive
6-2 Concepts
EMC Directives
OMRON devices that comply with EC Directives also conform to the related
EMC standards so that they can be more easily built into other devices or the
overall machine. The actual products have been checked for conformity to
EMC standards (see the following note). Whether the products conform to the
standards in the system used by the customer, however, must be checked by
the customer.
EMC-related performance of the OMRON devices that comply with EC Direc-
tives will vary depending on the configuration, wiring, and other conditions of
the equipment or control panel on which the OMRON devices are installed.
The customer must, therefore, perform the final check to confirm that devices
and the overall machine conform to EMC standards.
Note Applicable EMC (Electromagnetic Compatibility) standards are as follows:
EMS (Electromagnetic Susceptibility): EN61131-2
EMI (Electromagnetic Interference): EN50081-2
(Radiated emission: 10-m regulations)
Low Voltage Directives
Always ensure that devices operating at voltages of 50 to 1,000 VAC or 75 to
1,500 VDC meet the required safety standards for the PC (EN61131-2).
The CJ-series PCs comply with EC Directives. To ensure that the machine or
device in which a CJ-series PC is used complies with EC Directives, the PC
must be installed as follows:
• The PC must be installed within a control panel.
• Reinforced insulation or double insulation must be used for the DC power
supplies.
• PCs complying with EC Directives also conform to the Common Emission
Standard (EN50081-2). When a PC is built into a machine, however, the
structure of the control panel, the affects of other devices, wiring, and
other factors can affect performance, particularly in respect to radiated
emission (10-m regulations). Even when using CJ-series PCs, which
comply with EC Directives, the customer must, therefore, perform final
checks to confirm that devices and the overall machine conform to EMC
standards.
xv
SECTION 1
Features and System Configuration
This section describes the features and system configuration of the CJ1W-CIF21 Simple Communications Unit.
1-1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1-1-1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1-1-2 System Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1-1-3 Compatible PCs and Components . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1-2 Processing Component Data. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1
Introduction Section 1-1
1-1 Introduction
1-1-1 Features
Easily Data Transfer Ladder programming is not required to transfer data between the PC (CPU
between the PC and Unit) and supported OMRON components because the Simple Communica-
OMRON Components tions Unit exchanges data between the PC’s DM Area and the OMRON com-
ponents.
Connect a Wide Variety of Connects OMRON components equipped with CompoWay/F and SYSWAY
Components communications functions, including Temperature Controllers, Digital
Timer/Counters, and Digital Panel Meters.
Monitor All of the The PVs and status of Temperature Controllers, Digital Timer/Counters, and
Components from the PC Digital Panel Meters can be monitored in the PC’s DM Area, so all of the con-
nected components can be monitored together.
Easily Change Set values in the connected components can be changed just by changing the
Component SVs corresponding value in the PC’s DM Area.
Connect Multiple Units Simple Communications Units can be connected to a port on the CPU Unit
and to RS-232C ports on Serial Communications Boards/Units, enabling
more than one series of Components to be connected.
Connect up to 32 Components can be connected with unit numbers 0 to 31 for each Simple
Components per Unit Communications Unit.
Simple
CPU Unit Communication Unit
32 components max.
2
Introduction Section 1-1
Components
The following table shows the OMRON components equipped with SYSWAY
or CompoWay/F communications that can be connected.
Name Series Model SYSWAY CompoWay/F Comments
number Connection Segment connection
information
(See note 5.)
Tempera- Temperature Control- E5GN OK 1 OK ---
ture Control- lers E5CN OK 1 OK ---
lers
E5EN OK 1 OK ---
E5AN OK 1 OK ---
Digital Controllers, E5CK OK 1 No ---
Standard Models E5EK OK 1 No ---
E5AK OK 1 No ---
Digital Controllers E5EK OK 1 No Communications spe-
(Valve Control) E5AK OK 1 No cialized for value control
are not supported.
Digital Controllers E5CK-T No --- No ---
(Programmable) E5EK-T No --- No ---
E5AK-T No --- No ---
Digital Controllers E5EK-T No --- No ---
(Programmable, E5AK-T No --- No ---
Valve Control)
Temperature Control- E5EJ OK 1 No ---
lers E5AJ OK 1 No ---
Fuzzy Temperature E5AF OK 1 No ---
Controller
Modular Tempera- E5ZN No --- OK ---
ture Controller
Digital Controller E5ZM No --- OK ---
Board
Timers Digital Timer/Counter H8GN No --- OK ---
3
Introduction Section 1-1
4
Processing Component Data Section 1-2
Interface between the The Simple Communications Unit interfaces with the CPU Unit through the
Simple Communications CPU Unit’s DM Area using the RS-232C or peripheral port on the CPU Unit or
Unit and PC an RS-232C port on a Serial Communications Board or Unit.
Interface between the The Simple Communications Unit interfaces with the OMRON components by
Simple Communications transferring data with SYSWAY or CompoWay/F communications.
Unit and the Components
Differences between Data can be written between the Simple Communications Unit and OMRON
SYSWAY and components with SYSWAY or CompoWay/F communications. The methods
CompoWay/F used to read and write data are different in these communications protocols.
(Some components are not limited to just one of these protocols.)
SYSWAY Communications
When SYSWAY communications are being used, there are 5 possible com-
mand groups. Select one of five command groups with which specified data
will be transferred.
Also, the type of component being connected (Temperature Controller Unit or
Digital Panel Meter) must be set when using SYSWAY communications. Dif-
ferent variables are transferred with Temperature Controller Units and Digital
Panel Meters.
CompoWay/F Communications
When CompoWay/F communications are being used, the variables that will
be transferred must be registered beforehand one-by-one. Up to 12 variable
types can be registered. Register the variables that you want to write/read in
the write variable type area and read variable type area.
When CompoWay/F communications are being used, only these registered
variables can be written and read.
5
Processing Component Data Section 1-2
DM Area Structure The following diagram shows the structure of the DM Area used for communi-
cations with the Simple Communications Unit.
CompoWay/F
Read variable type area (27 words max.)
Number of read items Read data area (26 words max.)
Reserved Response monitor
Starting address of read data area Component status
Variable 1 type Variable 1 read data (lower bytes)
(103 words) Variable 1 address Variable 1 read data (upper bytes)
Control data area : :
: :
Simple Communications Unit control
Simple Communications Unit status Variable 12 type Variable 12 read data (lower bytes)
Syntax error address in DM Area Variable 12 address Variable 12 read data (upper bytes)
Unit number 0 to 31
communications control
Unit 0 communications type
Write variable type area (27 words max.)
Starting address of Unit 0 Write data area (26 words max.)
Number of write items
read variable type area
Starting address of Unit 0 Operation command Response monitor
write variable type area Starting address of write data area Operation command
Unit 1 communications type Variable 1 type Variable 1 write data (lower bytes)
Starting address of Unit 1 Variable 1 address Variable 1 write data (upper bytes)
read data area
Starting address of Unit 1 : :
: :
write data area
Variable 12 type Variable 12 write data (lower bytes)
: Variable 12 address Variable 12 write data (upper bytes)
:
:
Unit 31 communications type
Starting address of Unit 31 Read data area (11 words, 18 words for Digital Panel Meter)
read variable type area
Response monitor
Starting address of Unit 31
write variable type area Present temperature (Display value (lower bytes))
Status (Display value (upper bytes))
Target temperature (Display value status)
Alarm 1 SV (Peak hold setting (lower bytes))
Alarm 2 SV (Peak hold setting (upper bytes))
Proportional band (Peak hold status)
:
Note The values in parentheses show the read data for Digital Panel Meters.
Note The values in parentheses show the write data for Digital Panel Meters.
SYSWAY
6
Processing Component Data Section 1-2
Flow of Data Processing The following flowchart shows the flow of data processing.
Power application
Specify Unit 0.
Simple
Communications Unit NO
control setting set to
RUN?
YES
NO
Is there a write command?
YES
Send an operation command
request to the component.
Execute write.
YES
NO
Completed 32 Units?
YES
Write Simple Communications Unit
status.
7
SECTION 2
Unit Components and Specifications
This section provides specifications for the CJ1W-CIF21 Simple Communications Unit and describes the functions of
each component.
2-1 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2-1-1 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2-1-2 Dimensions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2-2 Component Names and Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
9
Specifications Section 2-1
2-1 Specifications
2-1-1 Specifications
Item Specification
Power supply voltage 24 VDC (See note.)
Allowable voltage range 20.4 to 26.4 VDC
Power consumption 1.5 W
Ambient operating temperature 0 to 55C
Ambient operating humidity 10% to 90% (no condensation)
Ambient storage temperature –20 to 75C
Weight 150 g
Note Provide a 24-VDC power supply to the power supply connector. Re-
fer to 3-2-2 Power Supply Wiring for details.
2-1-2 Dimensions
The following diagram shows the external dimensions of the CJ1W-CIF21
Simple Communications Unit. All dimensions are in millimeters.
90
33 65
1. RS-422/RS-485 port
5. Status indicators
3. DM starting address
switch (SW2)
4. RS-232C port
10
Component Names and Functions Section 2-2
Side View
SW3
ON
1
2
3
4
5
6
7
8
9
10
Top View
Cover
Bottom View
1. RS-422/RS-485 Port Connects to the Temperature Controllers, Digital Timer/Counters, and Digital
Panel Meters. Use either RS-422 or RS-485 connections; the two methods
cannot be combined in a single CJ1W-CIF21.
11
Component Names and Functions Section 2-2
NC
OMRON Component
Note The maximum wire RDB (+)
length is 500 m.
RDA (−) RXD
SDB (+)
SDA (−)
TXD
SDA−
Send/Receive Data
(I/O)
SDB+
NC
OMRON Component
RDB (+)
Note The maximum wire
length is 500 m. RDA (−)
12
Component Names and Functions Section 2-2
C5V
TXD
SDB
SDA
0V C5V SW4
5V
1 2
SE
SW1
C5V
5V
C5V
RXD
RDB
5V
C5V
SW1 RDA
4
3 SW4
C0V
C0V
0V C0V
ON 1
2 OFF ON
2
3 ON OFF
2
3
3
4 OFF ON
4
4
Note 1. Always turn OFF pins 9 and 10 when connecting to a CPM2A PC.
2. When connecting more than one Simple Communications Unit, set the
starting address in the DM Area at least 200 words apart from each other
so that the settings for the various Units do not overlap with each other.
Setting range: 0 to F
13
Component Names and Functions Section 2-2
DM Starting Address Area: D0000 to D1500 DM Starting Address Area: D2500 to D4000
(Pin 9 OFF and pin 10 OFF on SW3) (Pin 9 ON and pin 10 OFF on SW3)
SW2 setting Starting address in DM Area SW2 setting Starting address in DM Area
0 D0000 0 D2500
1 D0100 1 D2600
2 D0200 2 D2700
3 D0300 3 D2800
4 D0400 4 D2900
5 D0500 5 D3000
6 D0600 6 D3100
7 D0700 7 D3200
8 D0800 8 D3300
9 D0900 9 D3400
A D1000 A D3500
B D1100 B D3600
C D1200 C D3700
D D1300 D D3800
E D1400 E D3900
F D1500 F D4000
DM Starting Address Area: D5000 to D6500 DM Starting Address Area: D7500 to D9000
(Pin 9 OFF and pin 10 ON on SW3) (Pin 9 ON and pin 10 ON on SW3)
SW2 setting Starting address in DM Area SW2 setting Starting address in DM Area
0 D5000 0 D7500
1 D5100 1 D7600
2 D5200 2 D7700
3 D5300 3 D7800
4 D5400 4 D7900
5 D5500 5 D8000
6 D5600 6 D8100
7 D5700 7 D8200
8 D5800 8 D8300
9 D5900 9 D8400
A D6000 A D8500
B D6100 B D8600
C D6200 C D8700
D D6300 D D8800
E D6400 E D8900
F D6500 F D9000
14
Component Names and Functions Section 2-2
4. RS-232C Port Connects to the Simple Communications Unit to the RS-232C or peripheral
port on a CPU Unit or to an RS-232C port on a Serial Communications Board
or Unit.
RS-232C Cable Wiring
The following illustration shows the cable wiring for a CJ-series, CS-series, or
CQM1H PC.
Shield
The following illustration shows the cable wiring for a CPM2A PC.
15
Component Names and Functions Section 2-2
5. Status Indicators Indicate the operating status of the Simple Communications Unit.
Label Status Meaning
RUN Lit Communications have been established between the Simple
Communications Unit and the CPU Unit. The Simple Commu-
nications Unit is operating.
Not lit
The Simple Communications Unit is not operating with the
CPU Unit.
Flashing Communications between the Simple Communications Unit
and the CPU Unit are not established or were interrupted.
ERR/ALM Lit A fatal error occurred. (See note 1.)
Flashing A non-fatal error occurred. (See note 2.)
Not lit Unit operating normally.
COMM1 Flashing Data is being transferred between the Simple Communica-
tions Unit and the CPU Unit.
Not lit Not transferring data
COMM2 Flashing Data is being transferred between the Simple Communica-
tions Unit and connected components.
Not lit Not transferring data
Note 1. The Simple Communications Unit stops operating when a fatal error oc-
curs. Clear the cause of the error and turn the power ON again.
2. The Simple Communications Unit continues operating when a non-fatal er-
ror occurs. Just clear the cause of the error or clear the error and stop/start
operation to restore operation.
6. Communications Sets the communications conditions used to communicate with the connected
Settings and DM Starting components and with the CPU Unit. Remove the cover on the side of the Unit
Address Area (SW3) to access this DIP switch (SW3).
SW3 Pin Function OFF ON
ON
Note 1. All pins are set to OFF at the factory. The factory settings are shaded in the
above table.
2. Pins 3, 4, 5, and 6 set communications conditions between the Simple
Communications Unit and connected components only.
3. The communications conditions with the CPU Unit are fixed to the follow-
ing: 7 data bits, even parity, and 2 stop bits.
4. When connected to a CPM2A CPU Unit, always turn OFF pins 9 and 10.
16
Component Names and Functions Section 2-2
5. When connecting more than one Simple Communications Unit, set the starting
address in the DM Area at least 200 words apart from each other so that the
settings for the various Units do not overlap with each other.
7. Terminator Turn ON pins 1 and 2 if the Simple Communications Unit is at the end of the RS-
Switches (SW4) 422/RS-485 transmission path. Remove the cover on the top of the Unit to access
SW4. If the cover is difficult to remove, use a small slotted screwdriver to pry it
open.
SW4
Enable Disable
terminator terminator
Pin 1 Pin 2
Enable terminator ON ON
Disable terminator OFF OFF
17
SECTION 3
Preparation for Operation
This section describes preparatory procedures from installation of the CJ1W-CIF21 Simple Communications Unit to
operation of the Unit.
19
Procedure Outline Section 3-1
PC settings
Connected component
settings
DM Area settings
Communications with
connected components
DIN Track
PFP-100N (1 m)
PFP-50N (50 cm)
PFP-100N2 (1 m)
PFP-M End Plates
20
Installation and Power Supply Wiring Section 3-2
Note The DIN Track must be installed horizontally. If the Track is installed vertically,
air will not flow properly through the Unit and the Unit may overheat.
Removing the Unit from the DIN Track
Use a standard slotted screwdriver to release the Unit’s bottom hook. Pull the
bottom of the Unit off of the DIN Track.
Slotted screwdriver
21
Installation and Power Supply Wiring Section 3-2
&DXWLRQ Do not perform a voltage withstand test on the Unit’s DC power supply termi-
nals. The test might damage the Unit’s internal components.
Using a General-purpose Connect the CJ1W-CIF21 Simple Communications Unit to a 24-VDC power
DC Power Supply supply with the power supply cord included with the Unit.
1,2,3... 1. Align the power supply cord’s connector with the connector on the bottom
of the Unit and insert it into the Unit.
2. To remove the power supply cord, hold the cord’s connector, press on the
lock lever to release the connector’s lock, and pull out the connector. Do
not pull on the wires.
Lock lever
22
Simple Communications Unit Connections Section 3-3
Using a CPM2C-PA201 AC If you are using a CPM2C-PA201 Power Supply Unit, use the power supply
Power Supply Unit cord included with the CPM2C-PA201 to connect to the CJ1W-CIF21 Simple
Communications Unit.
Note 1. Use a DC power supply with sufficient capacity and minimum ripple. The
CPM2C-PA201 is recommended.
2. Use double or reinforced insulation on the power supply whenever meeting
the Low Voltage Directive of the EC Directives is necessary.
32 components max.
Note Use either RS-422 or RS-485. The two methods cannot be combined.
23
Simple Communications Unit Connections Section 3-3
Shield
CPM2A PC
CPM2A Cable connections and Simple Comm. Unit
Pin Signal directions
Signal Signal Pin
--- 1 --- 1
SD 2 SD 2
RD 3 RD 3
RS 4 RS 4
CS 5 CS 5
--- 6 --- 6
--- 7 --- 7
--- 8 --- 8
SG 9 SG 9
Hood Shield
The following connectors can be used to connect the PC to the Simple Com-
munications Unit.
• CJ-series, CS-series, or CQM1H PC
Unit Port on Unit Model number Length
CPU Unit Built-in RS-232C XW2Z-200T/500T 2 or 5 m
port (D-Sub, 9-pin
female)
Peripheral port CS1W-CN118 + 0.1 m + 2 or 5 m
XW2Z-200T/500T
Serial Communica- RS-232C port (D- XW2Z-200T/500T 2 or 5 m
tions Board/Unit Sub, 9-pin female)
• CPM2A PC
Unit Port on Unit Model number Length
CPU Unit Built-in RS-232C XW2Z-200T/500T 2 or 5 m
port (D-Sub, 9-pin
female)
Peripheral port CPM1-CIF01 + 0.15 m + 2 or 5 m
XW2Z-200T/500T
24
Simple Communications Unit Settings Section 3-4
ON 1
ON 1
2
2
3
3
4
4
The following table shows the factory settings (RS-485 communications).
SW1 pin Factory setting Function
1 ON Selects RS-485 communi-
2 ON cations (two-wire communi-
cations).
3 OFF
4 ON
The following table shows the factory settings for SW2 and SW3 pins 9 and
10.
SW2 SW3 pin 9 SW3 pin 10 Starting address in the DM Area
0 OFF OFF D0000
Note 1. Refer to 3. DM Starting Address Switch (SW2) on page 13 for tables show-
ing all of the possible settings of SW2 and SW3 pins 9 and 10.
2. When connected to a CPM2A CPU Unit, always turn OFF pins 9 and 10.
3. When connecting more than one Simple Communications Unit, set the
starting address in the DM Area at least 200 words apart from each other
so that the settings for the various Units do not overlap with each other.
25
Simple Communications Unit Settings Section 3-4
ON
1
2
3
4
5
6
7
8
9
10
Note 1. When connected to a CPM2A CPU Unit, always turn OFF pins 9 and 10.
2. When connecting more than one Simple Communications Unit, set the
starting address in the DM Area at least 200 words apart from each other
so that the settings for the various Units do not overlap with each other.
3. Refer to 6. Communications Settings and DM Starting Address Area
(SW3) on page 16 for more details on SW3 pin settings.
Terminator Switches (SW4)
Turn ON pins 1 and 2 if the Simple Communications Unit is at the end of the
RS-422/RS-485 transmission path. The factory setting for SW4 is both pins
OFF (no terminating resistance.)
SW4
26
PC Settings Section 3-5
3-5 PC Settings
Make the following settings for the PC (CPU Unit, Serial Communications
Board, or Serial Communications Unit).
Setting name Setting Remarks
Serial communications Host Link ---
mode
Baud rate 9,600/19,200/38,400/57,600 bps Set to match the Sim-
ple Communications
Unit’s setting.
Data length 7 bits ---
Parity enable/disable Enable parity ---
Parity even/odd setting Even ---
Stop bits 2 bits ---
Host Link number 00 ---
(See note 1.)
Note 1. Set the Host Link number to 00. Operation will not be possible with any oth-
er number.
2. The range of DM Area addresses that can be used depends on the PC that
is being connected. Check the applicable DM Area address range in the
CPU Unit and do not exceed it.
3. Although the CS/CJ-series CPU Units support addresses D00000 to
D32767 in the DM Area, the Simple Communications Unit must be allocat-
ed addresses between D00000 and D09999.
27
DM Settings and Component Communications Section 3-7
Write the following program sections in the user program to establish commu-
nications with the connected components.
3-7-1 DM Settings
Verify that the components that you want to connect are supported by the
CJ1W-CIF21. Determine whether the components will communicate by
SYSWAY or CompoWay/F communications.
Write the following program sections at the beginning of the user program so
that the DM settings are made when the PC is turned ON.
When more than one Simple Communications Unit is connected, set the sys-
tem so that the Control Data Areas and the Individual Unit Areas do not over-
lap.
1,2,3... 1. Set the rightmost digit of the “Simple Communications Unit control” word
in the Control Data Area (the RUN/Stop digit) to 1 (RUN).
2. Turn ON the Read Command Bit or Write Command Bit of the desired
component. (These bits are in the Control Data Area with word offsets +3,
+4, +5, and +6. See Communications Control Bits (Offset: +3, +4, +5, and
+6) on page 37.)
Changes to the following values are recognized only when the Simple Com-
munications Unit control word’s RUN/Stop digit is switched from Stop to RUN.
When one of these values has been changed, switch the Simple Communica-
tions Unit from RUN to Stop and then back to RUN again.
• Segment information
• Command group
• Communications protocol
• Starting addresses of read/write data areas
• Starting addresses of read/write variable type areas
Note Refer to Simple Communications Unit Control (Offset: +0) on page 36 for
details on the RUN/Stop Digit.
28
Precautions for Component Communications Section 3-8
29
Precautions for Component Communications Section 3-8
DM Area allocation errors are fatal errors that are cleared by turning the
power supply OFF and then ON again. Fatal errors are not cleared just by
eliminating the cause of the error.
Delaying the The communications timeout setting must be extended if you are using a sys-
Communications tem configuration that causes a significant delay in the communications
Response with Connected response between the Simple Communications Unit and the components,
Components
such as wireless communications between the Unit and components. The
communications timeout setting can be set in multiples of 500 ms, up to the
maximum monitoring time of 5.0 s. Set a monitoring time appropriate for your
system.
Note Under normal conditions, it is not necessary to change the communications
timeout setting. In general use a setting of 0, which sets a response monitor-
ing time of 500 ms. Refer to Simple Communications Unit Control (Offset: +0)
on page 36 for details on the communications timeout setting.
Selecting RAM Write Mode When selecting the RAM write mode or backup mode, program the selection
or Backup Mode operation command so that it is sent in only one scan. Some components
write to non-volatile memory when this command is received, so the service
live of the non-volatile memory will be reduced if the command is received
every scan.
DM Area Settings for When more than one Simple Communications Unit is connected, set the sys-
Multiple Simple tem so that the Control Data Areas and the Individual Unit Areas do not over-
Communications Units lap.
30
Troubleshooting Section 3-9
3-9 Troubleshooting
The Simple Communications Unit can detect two kinds of errors: fatal errors
cause the ERR indicator to light and non-fatal errors cause the ERR indicator
to flash. The following tables show the likely causes of these errors and the
process to clear the errors.
Note Watchdog timer errors and DM allocation errors are indicated in the Simple
Communications Unit status word. (Refer to Simple Communications Unit
Status (Offset: +1) on page 36 for details.)
31
Troubleshooting Section 3-9
32
SECTION 4
Allocations in the DM Area
This section describes the interface with the Components provided in the DM Area of the CPU Unit.
33
Data Memory (DM) Allocation Section 4-1
CompoWay/F
Write variable
type area (27 words max.)
SYSWAY
34
Shared Area Section 4-2
Note 1. These words are used to notify the CPU Unit of the Simple Communica-
tions Unit’s status.
2. The functions in parentheses are for CompoWay/F communications.
35
Shared Area Section 4-2
Simple Communications
Unit Control (Offset: +0)
Bits Setting Range Function
0 to 3 RUN/Stop 1: RUN If this digit is set to 1 after the power is turned ON, the Simple Communica-
0: Stop tions Unit will start communications with components and the CPU Unit. (If
(Digit 160)
a fatal error has occurred, the Unit will not start communications with com-
ponents even if this digit is set to 1.)
The Simple Communications Unit will not communicate with components if
this digit is set to 0.
4 to 7 Communications 0 to 9 Sets the response monitoring time for access from the Simple Communica-
1 timeout (BCD) tions Unit to connected components. The timeout time is set in multiples of
(Digit 16 )
500 ms ((Set value + 1) 500 ms). This setting is usually set to 0, which
sets a response monitoring time of 500 ms.
8 to 15 Number of con- 00 to 32 Specifies the number of components connected to the Simple Communica-
2 nected components (BCD) tions Unit. The Simple Communications Unit will not communicate with
(Digits 16
components if the number of connected components is set to 0.
and 163)
Simple Communications
Unit Status (Offset: +1)
Error condition Bits Setting Range Function
Error occurred 0 to 7 Error code 01, 02, The rightmost 2 digits contain an error code.
(Bit 15 ON) or 15 01: Watchdog timer error (fatal error)
(Digits 160
When this error occurs, the Simple Communications Unit will
and 161)
stop all communications and light the ERR indicator after
writing the “Simple Communications Unit Status” word.
02: Syntax error (non-fatal error)
When this error occurs, the Simple Communications Unit will
stop communications with the components and flash the
ERR indicator after writing the DM address where the error
occurred in the “Syntax Error DM Address” word.
15: DM allocation error (fatal error)
This error occurs when the Unit attempts to read or write a
DM address that does not exist in the CPU. After the error
occurs, the Simple Communications Unit will stop communi-
cations with the components and light the ERR indicator.
Check the range of the PC’s DM area and keep DM allocation
within that range.
8 to 11 Stop flag 0 Operation will stop if an error occurs, and this flag will turn OFF.
(Digit 162)
12 to 15 Error flag 8 A value of 8 (bit 15 ON) indicates that a fatal error has occurred in
the Simple Communications Unit.
(Digit 163
)
36
Shared Area Section 4-2
Communications Control
Bits (Offset: +3, +4, +5,
and +6)
Bit Offset +3 Offset +4 Offset +5 Offset +6
(Units 0 to 7) (Units 8 to 15) (Units 16 to 23) (Units 24 to 31)
0 Unit 7 Read Command Bit Unit 15 Read Command Bit Unit 23 Read Command Bit Unit 31 Read Command Bit
1 Unit 7 Write Command Bit Unit 15 Write Command Bit Unit 23 Write Command Bit Unit 31 Write Command Bit
2 Unit 6 Read Command Bit Unit 14 Read Command Bit Unit 22 Read Command Bit Unit 30 Read Command Bit
3 Unit 6 Write Command Bit Unit 14 Write Command Bit Unit 22 Write Command Bit Unit 30 Write Command Bit
4 Unit 5 Read Command Bit Unit 13 Read Command Bit Unit 21 Read Command Bit Unit 29 Read Command Bit
5 Unit 5 Write Command Bit Unit 13 Write Command Bit Unit 21 Write Command Bit Unit 29 Write Command Bit
6 Unit 4 Read Command Bit Unit 12 Read Command Bit Unit 20 Read Command Bit Unit 28 Read Command Bit
7 Unit 4 Write Command Bit Unit 12 Write Command Bit Unit 20 Write Command Bit Unit 28 Write Command Bit
8 Unit 3 Read Command Bit Unit 11 Read Command Bit Unit 19 Read Command Bit Unit 27 Read Command Bit
9 Unit 3 Write Command Bit Unit 11 Write Command Bit Unit 19 Write Command Bit Unit 27 Write Command Bit
10 Unit 2 Read Command Bit Unit 10 Read Command Bit Unit 18 Read Command Bit Unit 26 Read Command Bit
11 Unit 2 Write Command Bit Unit 10 Write Command Bit Unit 18 Write Command Bit Unit 26 Write Command Bit
12 Unit 1 Read Command Bit Unit 9 Read Command Bit Unit 17 Read Command Bit Unit 25 Read Command Bit
13 Unit 1 Write Command Bit Unit 9 Write Command Bit Unit 17 Write Command Bit Unit 25 Write Command Bit
14 Unit 0 Read Command Bit Unit 8 Read Command Bit Unit 16 Read Command Bit Unit 24 Read Command Bit
15 Unit 0 Write Command Bit Unit 8 Write Command Bit Unit 16 Write Command Bit Unit 24 Write Command Bit
37
Shared Area Section 4-2
Note There are restrictions on the number of times data can be written to the Tem-
perature Controller’s non-volatile memory. When frequently sending data to a
Temperature Controller, either set the Write Command Bit to 0 after writing is
completed, or set the write mode for the Temperature Controller to RAM write
mode. Also, execute commands to select the RAM write mode and backup
mode in only one scan. Some devices will write to non-volatile memory each
time the modes are selected, and the life of the non-volatile memory will be
exhausted much more quickly if selections are made every scan.
Unit Communications Use the following equation to calculate the offset for a given unit number:
Type (Offset: +7, +10, +13, Offset = 7 + (3 unit number)
... , +97, and +100)
Bits Setting Range Function
0 to 7 Communications 00, 01, Specifies the communications protocol (SYSWAY or CompoWay/F) of the con-
0 protocol or 02 nected component if a component is connected.
(Digits 16
00: No Unit connected
and 161)
01: SYSWAY
02: CompoWay/F
A syntax error will occur and this word’s settings will be invalid if a value other
than 00, 01, or 02 is specified.
8 to 11 Command group 1 to 5 This setting is valid only when SYSWAY (01) is specified for the communica-
2 (valid with (BCD) tions protocol. When SYSWAY is specified, the command group determines
(Digit 16 )
SYSWAY only) which values are read/written when reading or writing data.
The command group setting will be invalid in the following cases:
1) The communications protocol is set to 02 (CompoWay/F).
2) The communications protocol is set to 00 (No Unit connected).
3) The communications protocol is set to 01 (SYSWAY), but the command
group setting is not within the allowed range (1 to 5).
12 to 15 Segment infor- 0, 1, or 2 This setting is valid only when SYSWAY (01) is specified for the communica-
mation tions protocol. The segment information specifies whether a Temperature Con-
(Digit 163)
(valid with troller or Digital Panel Meter is connected with the SYSWAY protocol.
SYSWAY only) The segment information setting will be invalid in the following cases:
1) The communications protocol is set to 02 (CompoWay/F).
2) The communications protocol is set to 00 (No Unit connected).
3) The communications protocol is set to 01 (SYSWAY), but the segment
information setting is not 1 or 2.
Note The command group and segment information settings are valid only when
the communications protocol is set to SYSWAY. These settings are not valid
when the communications protocol is set to CompoWay/F.
38
Shared Area Section 4-2
The following table shows the data that will be read and written for each com-
bination of the command group and segment information settings.
Segment Access Data Command group
information 1 2 3 4 5
1: Temperature Read Present temperature YES YES YES YES YES
Controller Status YES YES YES YES YES
Target temperature YES YES YES YES YES
Alarm 1 SV --- --- YES YES YES
Alarm 2 SV --- --- YES YES YES
Proportional band --- --- --- YES YES
Integral time --- --- --- YES YES
Derivative time --- --- --- YES YES
Heater current --- --- --- --- YES
Heater current status --- --- --- --- YES
Write Target temperature YES YES YES YES YES
Operation command --- YES YES YES YES
Alarm 1 SV --- --- YES YES YES
Alarm 2 SV --- --- YES YES YES
Proportional band --- --- --- YES YES
Integral time --- --- --- YES YES
Derivative time --- --- --- YES YES
Heater burnout detection value --- --- --- --- YES
2: Digital Panel Read Display value YES YES YES YES YES
Meter Display value status YES YES YES YES YES
Peak hold --- YES YES --- YES
Peak hold status --- YES YES --- YES
Bottom hold --- YES YES --- YES
Bottom hold status --- YES YES --- YES
Comparison value (HH) --- --- --- YES YES
Comparison value (H) --- --- --- YES YES
Comparison value (L) --- --- --- YES YES
Comparison value (LL) --- --- --- YES YES
Write Operation command --- --- YES --- YES
Comparison value (HH) --- --- --- YES YES
Comparison value (H) --- --- --- YES YES
Comparison value (L) --- --- --- YES YES
Comparison value (LL) --- --- --- YES YES
39
Shared Area Section 4-2
Starting Address of Read Use the following equation to calculate the offset for a given unit number:
Data Area or Read Offset = 8 + (3 unit number)
Variable Type Area
(Offset: +8, +11, ... , +98,
and +101)
Setting Range Function
Starting Address 0000 to 9999 BCD Specifies the starting DM address in the CPU Unit’s DM area where the data
of Read Data Area (DM address) read from the component will be stored.
(SYSWAY proto- A syntax error will occur if the starting address specified in this word is not BCD.
col)
Starting Address 0000 to 9999 BCD Specifies the starting DM address of the words that show which variables will be
of Read Variable (DM address) read from the component.
Type Area The data that will be read from the component is determined by the variable
(CompoWay/ type and address written in the variable type area.
F protocol) A syntax error will occur if the starting address specified in this word is not BCD.
40
Individual Unit Areas Section 4-3
41
Individual Unit Areas Section 4-3
Note Depending on the Component, some variable types will not be written unless
the variable type is changed. Refer to the component’s manual for details.
Variable Addresses (Offset: +4, +6, ... , +24, and +26)
Use the following equation to calculate the offset for a given variable number:
Offset = 2 + (2 variable number)
Range Function
0000 to FFFF Sets the variable address of the data that you want to read.
(Hex) The variable addresses are predetermined in each component, so
refer to the component’s manual to find the actual variable
address.
Write Variable Type Area When CompoWay/F has been specified as the component communications
(27 words max.) protocol, this “write variable type area” contains the variable type and variable
address settings for the SVs that will be written.
Offset Contents
+0 Number of write items
+1 Operation command
+2 Starting address of write data area
+3 Variable 1 type
+4 Variable 1 address
+5 Variable 2 type
: :
: :
+23 Variable 11 type
+24 Variable 11 address
+25 Variable 12 type
+26 Variable 12 address
42
Individual Unit Areas Section 4-3
Note There are restrictions on the number of times data can be written to the Tem-
perature Controller’s non-volatile memory. When frequently sending data to a
Temperature Controller, either set the Write Command Bit to 0 after writing is
completed, or set the write mode for the Temperature Controller to RAM write
mode. Also, execute commands to select the RAM write mode and backup
mode in only one scan. Some devices will write to non-volatile memory each
time the modes are selected, and the life of the non-volatile memory will be
exhausted much more quickly if selections are made every scan.
Starting Address of Write Data Area (Offset: +2)
Range Function
0000 to 9999 Specifies the starting DM address in the CPU Unit’s DM area con-
(BCD) taining the data that you want to write to the component.
43
Individual Unit Areas Section 4-3
Read Data Area The starting address of the “read data area” is specified in the “read variable
(26 words max.) type area.” This “read data area” stores the variable data read from the com-
ponent.
Offset Contents
+0 Response monitor
+1 Component status
+2 Variable 1 read data (lower bytes)
+3 Variable 1 read data (upper bytes)
+4 Variable 2 read data (lower bytes)
+5 Variable 2 read data (upper bytes)
: :
: :
+22 Variable 11 read data (lower bytes)
+23 Variable 11 read data (upper bytes)
+24 Variable 12 read data (lower bytes)
+25 Variable 12 read data (upper bytes)
Response Monitor Area (Offset: +0)
This area contains the results of communications when communicating with
the component to read variables.
1,2,3... 1. End Code = 00
When the function’s end code is 00, the “response monitor area” contains
the response code.
Response code Meaning
0000 Indicates normal completion.
0401 Unsupported command
1001 Command length too long
1002 Command length too short
1101 Area type error
1103 Starting address out-of-range error
1104 End address out-of-range error
1003 Number of elements doesn’t match amount of data.
110B Response length too long
1100 Parameter error
2203 Operating error
2. End Code 00
When an error occurs and the function’s end code is a value other than 00,
the “response monitor area” contains the end code (error code). The value
of FF in the first two digits indicates that an error occurred during transmis-
sion of the CompoWay/F command.
Error code Meaning
FF04 Address overflow
FF0D Could not execute command.
FF10 Parity error
FF11 Framing error
FF12 Overrun error
FF13 BCC error
FF14 Format error
FF15 Numeric data error
FF16 Sub-address error
44
Individual Unit Areas Section 4-3
45
Individual Unit Areas Section 4-3
Offset Contents
+22 Variable 11 write data (lower 2 bytes)
+23 Variable 11 write data (upper 2 bytes)
+24 Variable 12 write data (lower 2 bytes)
+25 Variable 12 write data (upper 2 bytes)
Response Monitor Area (Offset: +0)
This area contains the results of communications when communicating with
the component to write variables.
1,2,3... 1. End Code = 00
When the function’s end code is 00, the “response monitor area” contains
the response code.
Response code Meaning
0000 Indicates normal completion.
0401 Unsupported command
1001 Command length too long
1002 Command length too short
1101 Area type error
1103 Starting address out-of-range error
1104 End address out-of-range error
1003 Number of elements doesn’t match amount of data.
110B Response length too long
1100 Parameter error
3003 Read-only error
2203 Operating error
2. End Code 00
When an error occurs and the function’s end code is a value other than 00,
the “response monitor area” contains the end code (error code). The value
of FF in the first two digits indicates that an error occurred during transmis-
sion of the CompoWay/F command.
Error code Meaning
FF04 Address overflow
FF0D Could not execute command.
FF10 Parity error
FF11 Framing error
FF12 Overrun error
FF13 BCC error
FF14 Format error
FF15 Numeric data error
FF16 Sub-address error
FF18 Frame length error
FF21 Non-volatile memory write error
FF97 Response data BCC error
3. Timeout error occurred
Timeout code Meaning
E999 Indicates that there was no response from the compo-
nent.
46
Individual Unit Areas Section 4-3
Note 1. SVs cannot be written in a scan in which 0600 has been specified for the
command code and related information.
2. Execute commands to select the RAM write mode and backup mode in
only one scan. Some devices will write to non-volatile memory each time
the modes are selected, and the life of the non-volatile memory will be ex-
hausted much more quickly if selections are made every scan.
Write Data (Offset: +2, +4, ... , +22, and +24)
The write data is contained in two words starting at offset 2 n (n = variable
number.)
Offset Range Function
2n 0000 to FFFF Store the lower (rightmost) two bytes of the SV
(n = variable (Hex) data that you want to write to the corresponding
number) component.
(2 n) + 1 0000 to FFFF Store the upper (leftmost) two bytes of the SV
(n = variable (Hex) data that you want to write to the corresponding
number) component.
47
Individual Unit Areas Section 4-3
48
Individual Unit Areas Section 4-3
Read Data Area: The following data will be read from a Digital Panel Meter when SYSWAY has
Digital Panel Meters been specified as the component communications protocol.
(18 words)
The starting address of the “read data area” is specified in the “Control Data
Area.” Select any one of the 5 command groups to specify which PVs and
SVs will be read, although 18 DM words will be allocated to the read data area
regardless of the command group selected.
Offset Data Command group
1 2 3 4* 5
+0 Response monitor area Read Read Read Read Read
+1 and +2 Display value Read Read Read Read Read
+3 Display value status Read Read Read Read Read
+4 and +5 Peak hold --- Read Read --- Read
+6 Peak hold status --- Read Read --- Read
+7 and +8 Bottom hold --- Read Read --- Read
+9 Bottom hold status --- Read Read --- Read
+10 and +11 Comparison value (HH) --- --- --- Read Read
+12 and +13 Comparison value (H) --- --- --- Read Read
+14 and +15 Comparison value (L) --- --- --- Read Read
+16 and +17 Comparison value (LL) --- --- --- Read Read
Note When command group 4 is selected, words with offsets +4 through +9 will be
cleared to 0000.
Response Monitor Area (Offset: +0)
The structure of the response monitor area is the same whether SYSWAY or
CompoWay/F communications are used. See Response Monitor Area on
page 44 for details on the response monitor area.
Read Data
Offsets: 163 162 161 160
+1, 4, 7, 10, 12, 14, 16
Read data lower byte (Binary, negative values are
expressed as their 2’s complement)
0000 to FFFF Hex
Offsets: 163 162 161 160
+2, 5, 8, 11, 13, 15, 17
Read data upper byte (Binary, negative values are
expressed as their 2’s complement)
0000 to FFFF Hex
Each two-word value read from the Digital Panel Meter has a value ranging
from 0000 0000 to FFFF FFFF signed binary data. Negative values are
expressed as their 2’s complement. The words will contain 0000 0000 if a
communications error occurred. The following example shows the contents of
the read data area when a communications error occurred while reading the
display value in command group 1.
5HVSRQVH0RQLWRU$UHD &RQWDLQVWKHHUURUFRGH
'LVSOD\YDOXH &RQWDLQV
'LVSOD\YDOXHVWDWXV &RQWDLQV
Note The decimal point position has to be managed by the user since the Digital
Panel Meter’s decimal point position is not transferred in SYSWAY (X format)
communications.
Status (Offset: +3, +6, and +9)
The read data area’s +3, +6, and +9 offset words contain the status when
reading the display value, peak hold value, or bottom hold value, respectively.
49
Individual Unit Areas Section 4-3
Refer to the Digital Panel Meter’s Operation Manual for details on the status
values.
Write Data Area: The following data will be written to a Temperature Controller when SYSWAY
Temperature Controllers has been specified as the component communications protocol.
(9 words)
The starting address of the “write data area” is specified in the “Control Data
Area.” Select any one of the 5 command groups to specify which SVs will be
written, although 9 DM words will be allocated to the write data area regard-
less of the command group selected.
Offset Data Command group
1 2 3 4 5
+0 Response monitor area Written Written Written Written Written
+1 Target temperature Written Written Written Written Written
+2 Operation command --- Written Written Written Written
+3 Alarm 1 SV --- --- Written Written Written
+4 Alarm 2 SV --- --- Written Written Written
+5 Proportional band --- --- --- Written Written
+6 Integral time --- --- --- Written Written
+7 Derivative time --- --- --- Written Written
+8 Heater burnout detection --- --- --- --- Written
value
Response Monitor Area (Offset: +0)
The structure of the response monitor area is the same whether SYSWAY or
CompoWay/F communications are used. See Response Monitor Area on
page 46 for details on the response monitor area.
Write Data (Offset: +1, +3, +4, +5, +6, +7, and +8)
Set the words of data to be written to the Temperature Controller as binary
data. Negative values are expressed as their 2’s complement.
If a communications error occurs while writing data, the remaining write data
will not be written and the next process for the general-purpose communica-
tions device will be executed. The error code will be written to the response
monitor area.
The following example shows the results of the write operation when a com-
munications error occurred while writing the target temperature in command
group 2.
5HVSRQVH0RQLWRU$UHD &RQWDLQVWKHHUURUFRGH
7DUJHWWHPSHUDWXUH 7KH69ZRQ¶WEHZULWWHQ
2SHUDWLRQ&RPPDQG 7KHRSHUDWLRQFRPPDQGZRQ¶WEHZULWWHQ
Note The decimal point position has to be managed by the user since the Tempera-
ture Controller’s decimal point position is not transferred in SYSWAY (X for-
mat) communications.
Operation Command (Offset: +2)
Store the operation command code (0000 to 0005) in this word. When a com-
mand group that includes the operation command is selected, the corre-
sponding operation command will be sent to the Temperature Controller.
Command code Operation
0000 Don’t perform operation command. (No operation)
0001 Stop auto-tuning.
0002 Start auto-tuning.
0003 Select backup mode.
50
Individual Unit Areas Section 4-3
Note 1. SVs cannot be written in a scan in which “start auto-tuning” has been spec-
ified.
2. Starting and stopping auto-tuning is possible for E5EK, E5AK, and E5AF
models only.
3. There are restrictions on the number of times data can be written to the
Temperature Controller’s non-volatile memory. When frequently sending
data to a Temperature Controller, either set the Write Command Bit to 0 af-
ter writing is completed, or set the write mode for the Temperature Control-
ler to RAM write mode. Also, execute commands to select the RAM write
mode and backup mode in only one scan. Some devices will write to non-
volatile memory each time the modes are selected, and the life of the non-
volatile memory will be exhausted much more quickly if selections are
made every scan.
Write Data Area: The following data will be written to a Digital Panel Meter when SYSWAY has
Digital Panel Meters been specified as the component communications protocol.
(10 words)
The starting address of the “write data area” is specified in the “Control Data
Area.” Select any one of the 5 command groups to specify which SVs will be
written, although 10 DM words will be allocated to the write data area regard-
less of the command group selected.
Offset Data Command group
1 2 3 4 5
+0 Response monitor area Written Written Written Written Written
+1 Operation command --- --- Written --- Written
+2 and +3 Comparison value (HH) --- --- --- Written Written
+4 and +5 Comparison value (H) --- --- --- Written Written
+6 and +7 Comparison value (L) --- --- --- Written Written
+8 and +9 Comparison value (LL) --- --- --- Written Written
Response Monitor Area (Offset: +0)
The structure of the response monitor area is the same whether SYSWAY or
CompoWay/F communications are used. See Response Monitor Area on
page 46 for details on the response monitor area.
Write Data
Offsets: 163 162 161 160
+2, 4, 6, 8
Write data lower byte (Binary, negative values are
expressed as their 2’s complement)
0000 to FFFF Hex
Offsets: 163 162 161 160
+3, 5, 7, 9
Write data upper byte (Binary, negative values are
expressed as their 2’s complement)
0000 to FFFF Hex
Set the words of data to be written to the Digital Panel Meter as binary data.
Negative values are expressed as their 2’s complement.
51
Individual Unit Areas Section 4-3
If a communications error occurs while writing data, the remaining write data
will not be written and the next process for the general-purpose communica-
tions device will be executed. The error code will be written to the response
monitor area.
The following example shows the results of the write operation when a com-
munications error occurred while writing comparison value (H) in command
group 4.
5HVSRQVH0RQLWRU$UHD &RQWDLQVWKHHUURUFRGH
&RPSDULVRQYDOXH++ 7KH69ZLOOEHZULWWHQQRUPDOO\
&RPSDULVRQYDOXH+ 7KH69ZRQ¶WEHZULWWHQ
&RPSDULVRQYDOXH/ 7KH69ZRQ¶WEHZULWWHQ
&RPSDULVRQYDOXH// 7KH69ZRQ¶WEHZULWWHQ
Note The decimal point position has to be managed by the user since the Digital
Panel Meter’s decimal point position is not transferred in SYSWAY (X format)
communications.
Operation Command (Offset: +2)
Store the operation command code (0000 to 0004) in this word. When a com-
mand group that includes the operation command is selected, the corre-
sponding operation command will be sent to the Digital Panel Meter.
Command code Operation
0000 Don’t perform operation command. (No operation)
0001 Reset.
0002 Select backup mode.
0003 Select RAM write mode.
0004 Save the Setting/Adjust values.
Note There are restrictions on the number of times data can be written to the Tem-
perature Controller’s non-volatile memory. When frequently sending data to a
Temperature Controller, either set the Write Command Bit to 0 after writing is
completed, or set the write mode for the Temperature Controller to RAM write
mode. Also, execute commands to select the RAM write mode and backup
mode in only one scan. Some devices will write to non-volatile memory each
time the modes are selected, and the life of the non-volatile memory will be
exhausted much more quickly if selections are made every scan.
52
Appendix A
Data Refresh Cycle (Reference Data)
Note 1. The refresh cycle is not fixed because the communications response times of the components and
the CPU Unit are not fixed. The refresh cycles shown in the table above are average times.
2. The number of read data items and number of write data items for SYSWAY communications are de-
termined by the command group that has been selected.
53
Data Refresh Cycle (Reference Data) Appendix A
CompoWay/F
Data refresh cycle (Td) =
Tps + (Tcr1 No. of read components) + Component read time + (Tcw1 No. of write components) + Compo-
nent write time + (Tcrw No. of read/write components) + Component read/write time [seconds]
Component read time = Tcr2 (No. of read items - 1) + Tcr2 (No. of read items - 1) + ...... +
Tcr2 (No. of read items - 1)
(For each Component being read)
Component write time = Tcw2 (No. of write items - 1) + Tcw2 (No. of write items - 1) + ...... +
Tcw2 (No. of write items - 1)
(For each Component being written)
Component read/write time =
Tcr2 (No. of read items - 1) + Tcw2 (No. of write items - 1) +
Tcr2 (No. of read items - 1) + Tcw2 (No. of write items - 1) +...... +
Tcr2 (No. of read items - 1) + Tcw2 (No. of write items - 1)
(For each Component being read/written)
54
Data Refresh Cycle (Reference Data) Appendix A
Example: The following calculations are for a CJ-series CPU Unit with a 57,600 baud rate to the host, a 38,400
baud rate to the components, and eight E5ZN components. For four of the components (group 1), 2 words are
read and for the other four components (group 2), 2 words are read and 1 word is written.
Data refresh cycle (Td)
= [Time for group 1] + [Time for group 2]
= [Tps + (Tcr1 4) + (Tcr2 (2 - 1)) 4] + [(Tcrw 4) + (Tcr2 (2 - 1)) + (Tcw2 (1 - 1)) 4]
= [0.08 + (0.16 4) + (0.05 (2 - 1)) 4] + [(0.30 4) + (0.05 (2 - 1)) 4]
= 2.32
Td = 2.3 s
SYSWAY
Data refresh cycle (Td) =
Tps + Tsr1 No. of read Components for command group 1 + Tsw1 No. of write Components for command group 1
+ Tsr2 No. of read Components for command group 2 + Tsw2 No. of write Components for command group 2
+ Tsr3 No. of read Components for command group 3 + Tsw3 No. of write Components for command group 3
+ Tsr4 No. of read Components for command group 4 + Tsw4 No. of write Components for command group 4
+ Tsr5 No. of read Components for command group 5 + Tsw5 No. of write Components for command group 5
55
Data Refresh Cycle (Reference Data) Appendix A
Example: The following calculations are for a CJ-series CPU Unit with a 57,600 baud rate to the host, a 19,200
baud rate to the components, four E5CN components, and four E5GN components. Reading and writing are
performed for the four E5CN components (command group 1), and only reading is performed for the four
E5GN components (command group 2).
Data refresh cycle (Td)
= [Time for command group 1] + [Time for command group 2]
= [Tps + Tsr1 4 + Tsw1 4] + [Tsr2 4]
= [0.08 + 0.14 4 + 0.10 4] + [0.14 4]
= 1.60
Td = 1.6 s
56
Appendix B
Example Application
This section shows the system configuration and settings of an example system to help explain how to use the
Simple Communications Unit.
System Configuration
The example system has three E5CN Temperature Controllers connected to the Simple Communications Unit.
Simple Communications
CPU Unit Unit
RUN AD081 DA041
SYSMAC ERR/ALM RUN RUN
CJ1G-CPU44 INH ERC ERC
PROGRAMMABLE
CONTROLLER PRPHL ERH B1 A1 ERH B1 A1
COMM ADJ ADJ
OPEN
MCPWR
MACH MACH
No. No.
BUSY 1 1
x10 x10
0 0
x10 x10
PERIHERAL
1 2
1 2
MODE MODE
PORT
DM Allocation
The DM allocation is shown in the following table.
Unit settings Area name DM words
All (shared) Control Data Area D00000 to D00102
Unit 0 Unit 0 Read Variable Type Area D00150 to D00154
Unit 0 Write Variable Type Area D00160 to D00164
Unit 0 Read Data Area D00170 to D00173
Unit 0 Write Data Area D00180 to D00183
Unit 2 Unit 2 Read Data Area D00200 to D00210
Unit 2 Write Data Area D00220 to D00228
Unit 3 Unit 3 Read Data Area D00240 to D00250
Unit 3 Write Data Area D00260 to D00268
57
Example Application Appendix B
System Preparation
Refer to SECTION 3 Preparation for Operation and make the following preparations.
58
Example Application Appendix B
Note Variable type 00C0 and variable address 0000 indicate the PV (present tem-
perature).
Note Variable type 00C1 and variable address 0003 indicate the target tempera-
ture.
59
Example Application Appendix B
Note The Temperature Controller’s PV is read to D00172 and D00173 because the
present temperature is registered for the read variable type area.
Note 1. The operation command is set to 0000 (disabled) in the Unit 0 write variable type area, so the com-
mand code and related information are invalid.
2. Sets the hexadecimal equivalent of the target temperature (100C) which is the variable that was reg-
istered in the Unit 0 write variable type area.
60
Example Application Appendix B
Word Function
D00209 Heater current monitor (See note.)
Contains the heater current in binary.
D00210 Heater current status (See note.)
Contains the status when the heater current was read.
Note Only the values in D00200 to D00203 are refreshed with the data from the
component because command group 1 is selected in the Communications
Type for the Unit 2. Other read data, D00200 to D00210, is not refreshed.
When communicating with a Temperature Controller through SYSWAY,
always allocate 11 words to the read data area even if the selected command
group limits the number of words actually read.
Note Only the values in D00240 to D00242 are refreshed with the data from the
component because command group 1 is selected in the Communications
Type for the Unit 3. Other read data, D00244 to D00250, is not refreshed.
When communicating with a Temperature Controller through SYSWAY,
always allocate 11 words to the read data area even if the selected command
group limits the number of words actually read.
61
Example Application Appendix B
Note Only the target temperature can be written to the component because com-
mand group 1 is selected in the Communication Type for Unit 3. When com-
municating with a Temperature Controller through SYSWAY, always allocate 9
words to the write data area even if the selected command group limits the
number of words actually written.
62
Example Application Appendix B
A20011
(First Cycle Flag) H00000
MOV (21)
#0300
D00000
MOV (21)
#4700
Initial DM settings as shown
D00003 in DM settings tables
:
:
:
:
MOV (21)
#00C8
D00261
W00000
H0000
MOV (21)
Sets Simple Communications
#0301 Unit to RUN.
D00000
W10000
MOV (21)
This input condition
#C500 (W10000) turns ON the Unit
D00003 0 Write Command Bit.
63
Appendix C
DM Area Settings Assignment Sheets
65
DM Area Settings Assignment Sheets Appendix C
66
DM Area Settings Assignment Sheets Appendix C
67
DM Area Settings Assignment Sheets Appendix C
68
DM Area Settings Assignment Sheets Appendix C
69
DM Area Settings Assignment Sheets Appendix C
70
DM Area Settings Assignment Sheets Appendix C
71
DM Area Settings Assignment Sheets Appendix C
72
Revision History
A manual revision code appears as a suffix to the catalog number on the front cover of the manual.
Revision code
The following table outlines the changes made to the manual during each revision. Page numbers refer to the
previous version.
Revision code Date Revised content
01 September 2001 Original production
73