E5 D Series
E5 D Series
General-purpose Serial
Connection Guide
(RS-485 CompoWay/F)
OMRON Corporation
Digital Temperature Controller
(E5□D/E5□C/E5□C-T)
P704-E1-01
About Intellectual Property Rights and Trademarks
Microsoft product screen shots reprinted with permission from Microsoft Corporation.
Windows is a registered trademark of Microsoft Corporation in the USA and other countries.
Company names and product names in this guide are the trademarks or registered trademarks
of their respective companies.
Table of Contents
1. Related Manuals
To ensure system safety, make sure to always read and follow the information provided in all
Safety Precautions and Precautions for Safe Use in the manuals for each device which is
used in the system.
The table below lists the manuals pertaining to this guide.
1
2.Terms and Definitions
2
3.Precautions
3. Precautions
(1) Understand the specifications of devices which are used in the system. Allow some
margin for ratings and performance. Provide safety measures, such as installing a safety
circuit, in order to ensure safety and minimize the risk of abnormal occurrence.
(2) To ensure system safety, make sure to always read and follow the information provided in
all Safety Precautions and Precautions for Safe Use in the manuals for each device
which is used in the system.
(3) The user is encouraged to confirm the standards and regulations that the system must
conform to.
(4) It is prohibited to copy, to reproduce, and to distribute a part or the whole of this guide
without the permission of OMRON Corporation.
(5) The information contained in this guide is current as of March 2018. It is subject to
change for improvement without notice.
Additional Information
Additional information to read as required.
This information is provided to increase understanding or make operation easier.
Symbol
The filled circle symbol indicates operations that you must do.
The specific operation is shown in the circle and explained in the text.
This example shows a general precaution for something that you must do.
3
4.Overview
4. Overview
This guide describes procedures for connecting a Digital Temperature Controller (E5□D,
E5□C or E5□C-T) to a CJ-series Programmable Controller + Serial Communications Unit
(hereinafter referred to as the "PLC") via serial communications, both produced by OMRON
Corporation (hereinafter referred to as "OMRON"), and for checking their communication
status.
Refer to Section 6. Serial Communications Settings and Section 7. Serial Communications
Connection Procedure to understand setting methods and key points to send or receive a
message via serial communications.
The ladder program in the prepared CX-Programmer project file is used to check the serial
connection by sending or receiving a message of ''Properties Read'' to/from the Digital
Temperature Controller.
Prepare the CX-Programmer project file and the CX-Protocol project file with latest versions
beforehand. To obtain the project files, contact your OMRON representative.
4
5.Applicable Devices and Device Configuration
5
5.Applicable Devices and Device Configuration
Additional Information
This guide describes the procedures for establishing the network connection.
It does not provide information on operation, installation, wiring method, device functionality,
or device operation, which is not related to the connection procedures.
Refer to the manuals or contact your OMRON representative.
6
5.Applicable Devices and Device Configuration
7
5.Applicable Devices and Device Configuration
Additional Information
For information on the serial cable (RS-485), refer to 3-4 RS-232C and RS-422A/485 Wiring
of the CJ Series Serial Communications Units OPERATION MANUAL (Cat. No. W336).
Additional Information
The system configuration in this guide uses USB for the connection between the personal
computer and the PLC. For information on how to install the USB driver, refer to A-5 Installing
the USB Driver of the CJ-series CJ2 CPU Unit Hardware USER'S MANUAL (Cat. No. W472).
8
6.Serial Communications Settings
This section describes the parameters and cable wiring, which are set up in this guide.
6.1. Parameters
The following parameters are required to connect the PLC and the Digital Temperature
Controller via serial communications.
9
6.Serial Communications Settings
Additional Information
For information on the connector configurations and pin assignments of the other models,
refer to their respective manuals.
10
7.Serial Communications Connection Procedure
This section describes the procedures for connecting the PLC to the Digital Temperature
Controller via serial communications. The procedures for setting up the PLC and the Digital
Temperature Controller in this guide are based on the factory default settings.
For the initialization, refer to Section 8. Initialization Method.
11
7.Serial Communications Connection Procedure
7.4. Serial Communication Status Start the send/receive processing and confirm that
Check serial communications performs normally.
↓
7.4.1. Starting the Trace Start tracing with CX-Protocol.
↓
7.4.2. Executing the Communications Execute the communications sequence with
Sequence CX-Programmer.
↓
7.4.3. Checking the Trace Data Check that correct data is sent and received, using
the trace data in CX-Protocol.
↓
7.4.4. Checking Received Data With CX-Programmer, check that correct data is
written to the I/O memory of the PLC.
12
7.Serial Communications Connection Procedure
13
7.Serial Communications Connection Procedure
14
7.Serial Communications Connection Procedure
15
7.Serial Communications Connection Procedure
16
7.Serial Communications Connection Procedure
17
7.Serial Communications Connection Procedure
18
7.Serial Communications Connection Procedure
7.3.2. Opening the Project File and Going Online with the PLC
Start CX-Programmer, open the project file, and go online with the PLC.
Install CX-Programmer and the USB driver on your personal computer beforehand.
2 Start CX-Programmer.
(Project workspace)
19
7.Serial Communications Connection Procedure
20
7.Serial Communications Connection Procedure
21
7.Serial Communications Connection Procedure
Additional Information
If the online connection to the PLC cannot be established, check the cable connection.
After checking the cable connection, return to step 7, check the settings described in steps 8
to 10, and try online again.
For details, refer to Connecting Directly to a CJ2 CPU Unit Using a USB Cable of the
CX-Programmer OPERATION MANUAL (Cat. No. W446).
Additional Information
Some dialog boxes described in this guide may not be displayed depending on the
environmental settings of CX-Programmer. For details on the environmental settings, refer to
Options and Preferences in CHAPTER 3 Project Reference of the CX-Programmer
OPERATION MANUAL (Cat. No. W446).
The procedures with CX-Programmer in this guide assume that the check box ''Confirm all
operations affecting the PLC'' has been selected on the PLCs Tab Page.
22
7.Serial Communications Connection Procedure
(Project workspace)
2 Select Edit - I/O Table and Unit
Setup from the PLC Menu in
CX-Programmer.
23
7.Serial Communications Connection Procedure
Click OK.
24
7.Serial Communications Connection Procedure
2 Right-click 00 [1500]
CJ1W-SCU42 and select Unit
Setup.
25
7.Serial Communications Connection Procedure
26
7.Serial Communications Connection Procedure
27
7.Serial Communications Connection Procedure
28
7.Serial Communications Connection Procedure
29
7.Serial Communications Connection Procedure
30
7.Serial Communications Connection Procedure
1 Start CX-Protocol.
Output
Window
31
7.Serial Communications Connection Procedure
1 Double-click P704_CJ_
CWF_OMRON_E5CD_V100 in
the Project Workspace to
display a tree.
32
7.Serial Communications Connection Procedure
33
7.Serial Communications Connection Procedure
34
7.Serial Communications Connection Procedure
35
7.Serial Communications Connection Procedure
36
7.Serial Communications Connection Procedure
37
7.Serial Communications Connection Procedure
38
7.Serial Communications Connection Procedure
39
7.Serial Communications Connection Procedure
40
7.Serial Communications Connection Procedure
41
7.Serial Communications Connection Procedure
42
7.Serial Communications Connection Procedure
43
8.Initialization Method
8. Initialization Method
The setting procedures in this guide are based on the factory default settings.
Some settings may not be applicable unless you use the devices with the factory default
settings.
(1) Right-click Serial Communications Unit in the PLC IO Table Window and select Unit Setup
from the menu.
(2) In the CJ1W-SCU42 [View Parameters] Dialog Box, click Set Defaults first, then click
Transfer[PC to Unit].
44
8.Initialization Method
45
9.Program
9. Program
This section describes the details on the program used in this guide.
9.1. Overview
The following explains the specifications and functions of the program that are used to check
the connection between the Digital Temperature Controller (hereinafter referred to as the
"Destination Device") and the PLC (Serial Communications Unit (hereinafter referred to as the
"SCU")).
This program uses the protocol macro function of the SCU, to send/receive the "Properties
Read" command to/from the Destination Device and detect a normal end or an error end.
A normal end of the send/receive processing means a normal end of the communications
sequence.
An error end means an error end of the communications sequence and an error of the
Destination Device (identified in the response data from the Destination Device)
Here, the prefix "&" is added to decimal data and the prefix "#" is added to hexadecimal data
when it is necessary to distinguish between decimal and hexadecimal data. (e.g., "&1000" for
decimal data and "#03E8" for hexadecimal data)
Additional Information
OMRON has confirmed that normal communications can be performed using this program
under the conditions of 5.2. Device Configuration. However, we do not guarantee the normal
operation under disturbances such as electrical noise or device performance variation.
46
9.Program
(1)The ladder program executes the PMCR instruction for which the communications
sequence No. 618 is specified.
(2)The PLC reads the parameters (which are set in the send data setting area) according to
the send message defined by the communications sequence No. 618, and sends command
data to Digital Temperature Controller.
(3)The Digital Temperature Controller executes the command by receiving the command data
from the PLC, and returns response data to the PLC.
(4)The PLC receives the response data from Digital Temperature Controller according to the
receive message defined by the communications sequence No. 618, and stores the data in
the response data storage area.
PMCR
Sequence No. 1
Sequence No. 2
:
Sequence No. 618
47
9.Program
Additional Information
For details, refer to Serial Communications Instructions (PMCR) in SECTION 3 Instructions
of the CJ Series Programmable Controllers INSTRUCTIONS REFERENCE MANUAL (Cat.
No. W474).
48
9.Program
Data
No. of send area words
Data
No. of receive area words
49
9.Program
●Send/Receive Messages
Receive message * * * * * * CR LF
Data Terminator
[Relationship between send area S (PMCR instruction operand) and send message]
[Relationship between receive area R (PMCR instruction operand) and receive message]
No. of receive
area words
Bit
15 0 15 0 15 0 15 0
SCU → CPU * * * * * * * * * * * * * * * *
Receive area: R
+0 word +1 word +2 words +(n-1) words
50
9.Program
51
9.Program
CJ2M-CPU12
CJ1W-SCU42 Destination Device
Serial cable
Normal STX “01” “00” “00” “03” “05” “00” “00” *** ETX **
message Send Node Sub End MRC SRC MRES SRES Data Send BCC
Start No. Address code End
Error STX “01” “00” “**” “03” “05” “**” “**” ETX **
message Send Node Sub End MRC SRC MRES SRES Send BCC
start No. Address code end
Additional Information
For information on the CIO area allocated to the SCU, refer to 9.4.2 Lists of Allocations.
52
9.Program
●Input memory
The below addresses are used to operate this program.
Address Data type Variable name Description
5000.00 BOOL Input_Start Starts the send/receive processing when this flag
changes from OFF to ON.
5021 UINT Input_DestinationNodeNo Sets the node number of the Destination Device
(send destination).
●Output memory
The execution results of the program are stored in these addresses.
Address Data type Variable name Description
5000.02 BOOL Output_NormalEnd Turns ON when the send/receive processing ends
normally.
5000.03 BOOL Output_ErrorEnd Turns ON when one or more of the following errors
occur.
(1) PMCR instruction error
(2) Communications error
(3) Destination Device error
5503 WORD Output_Model 1_2 Stores the model numbers 1 and 2 received from the
Destination Device.
5504 WORD Output_Model 3_4 Stores the model numbers 3 and 4 received from the
Destination Device.
5505 WORD Output_Model 5_6 Stores the model numbers 5 and 6 received from the
Destination Device.
5506 WORD Output_Model 7_8 Stores the model numbers 7 and 8 received from the
Destination Device.
5507 WORD Output_Model 9_10 Stores the model numbers 9 and 10 received from the
Destination Device.
5508 WORD Output_BufferSize Stores the buffer size received from the Destination
Device.
H400 UINT Output_PMCR_ErrorCode Stores the error code when a PMCR instruction error
or a communications error occurs.
53
9.Program
●Internal memory
These addresses are used to operate this program only.
Address Data type Variable name Description
5000.01 BOOL Local_PMCRExecuting Indicates the PMCR instruction execution status.
Turns ON when the PMCR instruction is being
executed, and turns OFF when the PMCR instruction is
not executed.
5000.04 BOOL Local_PMCRNormalEnd Turns ON when the PMCR instruction ends normally.
5000.05 BOOL Local_PMCRErrorEnd Turns ON when a communications error (such as a
transmission error) occurs.
5000.06 BOOL Local_DestinationDevice Turns ON when a Destination Device error occurs.
Error
5000.07 BOOL Local_PMCRError Turns ON when a PMCR instruction error (any of the
following three errors) occurs.
(1) Sequence number error
(2) Data read/write range error
(3) Protocol data syntax error
5010 UINT Local_ControlWord1 Execution parameter of the PMCR instruction.
5011 UINT Local_ControlWord2 Execution parameter of the PMCR instruction.
5012 UINT Local_PMCR_ErrorCode Stores the error code when a PMCR instruction error
occurs.
5020 UINT Local_FirstSendWord Sets the number of send words of the PMCR
instruction.
5500 UINT Local_FirstReceiveWord Stores the number of words received from the
Destination Device.
5501 UINT Local_ResposeCode[0] Stores the error code of the Destination Device (end
code of CompoWay/F) when a Destination Device error
occurs.
5502 UINT Local_ResposeCode[1] Stores the error code of the Destination Device
(MRES/SRES of FINS-mini) when a Destination Device
error occurs.
54
9.Program
●CIO area
These addresses are allocated and fixed in the CIO area according to the unit number (unit
address) that is set for the SCU.
Unit number 0 is used in this program.
Additional Information
For details on the CIO area allocated to the SCU, refer to 2-3-2. CIO Area of the CJ Series
Serial Communications Units OPERATION MANUAL (Cat. No. W336).
Additional Information
For information on the related auxiliary area for the PMCR instruction, refer to Related
Auxiliary Area Words and Bits in Serial Communications Instructions (PMCR) in SECTION 3.
Instructions of the CJ Series Programmable Controllers INSTRUCTIONS REFERENCE
MANUAL (Cat. No. W474).
55
9.Program
56
9.Program
57
9.Program
58
9.Program
59
9.Program
60
9.Program
Additional Information
Refer to 9.8 Error Processing for information on the response codes.
61
9.Program
●When there is only one receive message for a step (send/receive once)
・One each of receive and send messages is set for a step.
Sequence No. 618 Step No. 00 Send message 00 Receive message 00
・
・ Step No. yy Send message yy Receive message yy
●When there is more than one receive message for a step (send/receive once)
・The send message and matrix are set for a step.
・More than one receive message is set in the case numbers 00 to 14 of matrix.
("Other" is automatically set in the case number 15.)
Sequence No. 900 Step No. 00 Send message 00 < Matrix >
Sequence No. xxx xxx: 999 max. Automatic setting in case No. 15 Case No.15 Other
(After modification)
Sequence No. 618 Step No. 00 SD PRO_R <MX PRO_R>
62
9.Program
63
9.Program
Additional Information
For details on communications sequence settings, refer to 5-2 Creating Sequences and
Steps of the CX-Protocol OPERATION MANUAL (Cat. No. W344).
●Monitoring time
The monitoring time (Timer Tr, Tfr, and Tfs) that is set for the communications sequence is
described below.
[Settings]
Item Name Description
Monitors the time from when the receive command of the step in
Receive wait
the sequence is recognized until the first byte (header) is
Timer Tr monitoring
received. This timer is set to 3 seconds in the protocol data used
time
in this guide.
Receive Monitors the time from reception of the first byte to reception of
finish the last byte of the data in the step in the sequence.
Timer Tfr
monitoring This timer is set to 3 seconds in the protocol data used in this
time guide.
Send finish Monitors the time from transmission of the header to
Timer Tfs monitoring transmission of the last byte of the data. This timer is set to 3
time seconds in the protocol data used in this guide.
Additional Information
For information on the calculation method of monitoring time, refer to 4-5 Calculation Method
of Monitoring Time of the CX-Protocol OPERATION MANUAL (Cat. No. W344).
64
9.Program
Additional Information
For details on the step settings, refer to 3-3 Step Attributes of the CX-Protocol OPERATION
MANUAL (Cat. No. W344).
●Retry count
The retry count that is set for the step is shown below. The step is repeated the number of
designated times (0 to 9 times) when an error occurs. If the error still remains after the
designated number of retry repetitions, the system goes to the error process.
The retry count can be set only for steps in which the Send&Receive command is set.
[Settings]
Step No. Retry count
00 3
[Settings]
Step No. Send message Receive message
00 SD PRO_R <MX PRO_R>
The matrix is indicated with a pair of marks < > at the beginning and end of a receive
message. The matrix is used when more than one receive message exists.
65
9.Program
[Settings]
Step No. Next process Error process
00 Matrix Abort
[Process list]
Process Description
End Ends the communications sequence.
Next Goes to the next step number.
Abort Aborts the step and ends the communications sequence.
Goto Goes to a designated step number.
Matrix Follows the next process that is set for each receive
message in the matrix.
66
9.Program
Additional Information
For details on the send message settings, refer to 3-4 Communication Message Attributes of
the CX-Protocol OPERATION MANUAL (Cat. No. W344).
67
9.Program
FINS-mini Command
STX Node No. Subaddress Text
Data
Byte
68
9.Program
Additional Information
For details on the receive message settings, refer to 3-4 Communication Message Attributes
of the CX-Protocol OPERATION MANUAL (Cat. No. W344).
69
9.Program
70
9.Program
Data
Byte
71
9.Program
Additional Information
For details on matrix settings, refer to 3-5 Creating Matrices of the CX-Protocol OPERATION
MANUAL (Cat. No. W344).
*The above screenshot shows that four cases are set in the matrix (MX PRO_R).
[Settings]
The table below shows the receive message and next process for each case number.
Case No. Receive message Next process
00 RV PRO_R End
01 RV FINSERR End
02 RV COMFERR End
15 Other End
An actually received message is compared with each of the following expected receive
messages set in the matrix: "RV PRO_R" (normal message), "RV FINSERR" and "RV
COMFERR" (error messages) and "Other" (other receive message) in that order.
If the actually received message is matched with either the normal or error message,
control will be passed to the next process as required. If not matched, control will be
passed to the next process designated with "Other". The ladder program checks the
received result to detect an error in the Destination Device.
72
9.Program
Normal end
Input_Start
(5000.00)
Local_PMCRExecuting
(5000.01)
Output_NormalEnd
(5000.02)
Output_ErrorEnd
(5000.03)
Output_PMCR_ErrorCode
(H400) #0000
Output_DestinationDeviceErrorCode
(H402) #0000
Local_PMCRExecuting
(5000.01)
Output_NormalEnd
(5000.02)
Output_ErrorEnd
(5000.03)
73
9.Program
Additional Information
For details and troubleshooting on the protocol macro errors, refer to 12-3 Troubleshooting of
the CJ Series Serial Communications Units OPERATION MANUAL (Cat. No. W336).
74
9.Program
[Frame] ([H402])
Bit 15 8 7 0
75
9.Program
[Frame] ([H403])
Bit 15 8 7 0
Additional Information
For details on the Destination Device errors and troubleshooting, refer to the Digital
Temperature Controllers User's Manual (Cat. No. H224/H174/H185) and the Digital
Temperature Controllers Communications Manual (Cat. No. H225/H175/H186).
76
10.Revision History
77
2018
P704-E1-01 0618-(0618)