The text of a manual · part 10 of 14
E5CK Digital Controller User's Manual, pages 91 to 100
Pages 91 to 100 of 138
The original document is the PDF (1.7 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Omron E5CK
Page 91
E5CK
CHAPTER 5 PARAMETERS
Option Mode • The parameters in this mode can be used only when the “security” parameter (protect mode) is set to “0” and “1”. • You can select this mode only when the option unit is set in the controller. In this mode, you can set the communications conditions, transfer output and event input parameters to match the type of option unit set in the controller. • To select this mode when in the levels 0 to 2, setup, expansion and calibration modes, key for 1 second minimum. The display changes to the menu display.
press the If you select [
] using the key then press the key for 1 second mini- mum, the controller enters the option mode. • To select parameters in this mode, press the use the or key. To change parameter settings, keys.
• The following table shows the parameters supported in this mode and the page where the parameter is described. Symbol
5--32
Parameter Name
Page
Multi-SP function
5-33
Event input assignment 1
5-33
Communication stop bit
5-34
Communication data length
5-34
Communication parity
5-34
Communication baud rate
5-34
Communication unit No.
5-34
Transfer output type
5-35
Transfer output upper limit
5-35
Transfer output lower limit
5-35
Page 92
E5CK
Option Mode Multi-SP function
Conditions of Use The event input function must be in use.
• This parameter specifies the number of set points (SP) when using the multi-SP function. When set to “0”, the multi-SP function cannot be used. Function
Setting Range 0 to 1
Unit
Default
None
0
Comment
F Related article 4.3 How to Use Option Functions (4-7) See
F Related parameter “Event input assignment 1” (option mode) F Option unit Event input unit (E53-CKB)
Model
Event input assignment 1
Function
• This parameter specifies event input other than the multi-SP function. The following two functions can be specified: Run/Stop and Manual/Auto. • Event input is disabled while the menu is displayed. It is also disabled in set up, expantion, option and calibration modes. Symbol
Comment
Conditions of Use Event input must be specified when the event input function is in use.
Function
Event Input Operation
Run/Stop
ON: Stop,
OFF : Run
Manual/Auto
ON: Manual,
OFF : Auto
F Related article 4.3 How to Use Option Functions (page 4-7) See
F Related parameter “Event input assignment 1” (option mode) F Option unit Event input unit (E53-CKB)
Model
5--33
Page 93
E5CK
CHAPTER 5 PARAMETERS
Option Mode Communication stop bit
Communication baud rate
Communication data length
Communication unit No.
Communication parity
Function
Conditions of Use The communications function must be in use.
• These parameters set the communications conditions. Make sure that the stop bit, data length, parity and baud rate of the host computer and the E5CK controller are matching. These parameters are valid when the power is turned ON again or when level 0 to 2 modes are switched. • When connecting two or more E5CK controllers to the host computer, set unit Nos. that will not conflict with the unit Nos. of other controllers. • “Communication stop bit” parameter
Comment
Unit Bits
Setting Range 1, 2
Default 2
• “Communication data length” parameter Setting Range 7, 8
Unit
Default
Bits
7
• “Communication parity” parameter Default
Setting : None/
:Even/
:Odd
• “Communication baud rate” parameter Setting Range 1.2, 2.4, 4.8, 9.6, 19.2
Unit
Default kbps
9.6
• “Communication unit No.” parameter Setting Range 0 to 99
Unit
Default
None
0
F Related article Capter 6 Using the Communications Function (page 6-1) See
F Related parameter “Remote/Local” (level 2 mode) F Option unit RS-232C unit (E53-CK01), RS-485 unit (E53-CK03)
Model
5--34
Page 94
E5CK
Option Mode Transfer output type Transfer output upper limit
Conditions of Use The transfer output function must be in use.
Transfer output lower limit
• These parameters set the transfer output conditions. Function
• The “transfer output type” parameter selects one of the following as the transfer output type, and assigns this to transfer output: Set point, Set point during SP ramp, Process value, Manipulated variable (heat), and Manipulated variable (cool). However, note that “manipulated variable (cool)” can be selected only during heating and cooling control. • The “transfer output upper limit” and “transfer output lower limit” parameters are used for scaling of transfer output. The setting range varies according to this output data. Also, a lower limit value larger than the upper limit value may be set. • During temperature input, the decimal point position of the set point, set point during SP ramp or process value is dependent on the currently selected sensor, and during analog input on the results of scaling. Transfer Output Lower Limit to Transfer Output Upper Limit
Transfer Type Comment
Set point Set point during SP ramp
Set point lower limit value to Set point upper limit value
Process value
Scaling lower limit to scaling upper limit
Manipulated variable (heat)
-5.0% to 105.0%
Manipulated variable (cool)
0.0% to 105.0%
Set point lower limit value to Set point upper limit value
• The output ranges of the set point, set point during SP ramp or process value when temperature input is selected are the ranges supported by the selected sensor. • When you have selected the “manipulated variable (heat)” parameter, the transfer output lower limit during heating and cooling control becomes “0.0”. F Related article 4.3 How to Use Option Functions (page 4-8) See
F Option unit Transfer output unit (E53-CKF) Model
5--35
Page 95
E5CK
CHAPTER 5 PARAMETERS
Calibration Mode • The parameters in this mode can be used only when the “security” parameter (protect mode) is set to “0”. When selecting this mode for the first time after the E5CK has left the factory, return the “security” parameter to “0”. • This mode contains the parameters for user calibration of inputs and outputs. Only parameters relating to input types specified in the “input type” parameter (setup mode) can be used. Also, related output parameters can be used only when the communications unit (E53-CKF) is added on. • To select this mode when in the levels 0 to 2, setup, expansion and option modes, press the select [ key for 1 second minimum. The display changes to the menu display. If you ] using the key then press the key for 1 second minimum, the controller enters the calibration mode. • For details on parameters in the calibration mode, see 4.5 Calibration (page 4-11).
5--36
Page 96
CHAPTER 6 USING THE COMMUNICATIONS FUNCTION
6
CHAPTER 6 USING THE COMMUNICATIONS FUNCTION This chapter mainly describes communications with a host computer and communications commands.
6.1 Outline of the Communications Function . . . . . . . . . .
6---2
Outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6---2
Transfer procedure . . . . . . . . . . . . . . . . . . . . .
6---2
Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6---2
6.2 Preparing for Communications . . . . . . . . . .
6---3
Cable connections . . . . . . . . . . . . . . . . . . . . . .
6---3
Setting the communications specifications . . . . . . . . . . . . . . . . . . . . . . . . . .
6---4
6.3 Command Configuration . . . . . . . . . . . . . . . .
6---5
6.4 Commands and Responses . . . . . . . . . . . . . .
6---6
Reading/writing parameters . . . . . . . . . . . . .
6---6
Issuing special commands . . . . . . . . . . . . . . .
6---9
6.5 How to Read Communications Error Information . . . . . . . . . . . . . . . . . . . . . 6---10 Undefined error . . . . . . . . . . . . . . . . . . . . . . . . 6---11 6.6 Program Example . . . . . . . . . . . . . . . . . . . . . . 6---12 How to use programs . . . . . . . . . . . . . . . . . . . 6---12 Program list (language: IBM PC) . . . . . . . . 6---13 Examples of use . . . . . . . . . . . . . . . . . . . . . . . . 6---14
6--1
Page 97
E5CK
CHAPTER 6 USING THE COMMUNICATIONS FUNCTION
6.1 Outline of the Communications Function
J Outline
The communications function allows you to monitor and set E5CK parameters by a program prepared and running on a host computer connected to the E5CK controller. This chapter describes operations as viewed from the host computer. When using the communications function, the option unit for RS-232C or RS-485 communications must be added on. The E5CK communications function allows you to carry out the following: • Reading/writing of parameters; • Operation instructions; and • Selecting the setting level. The communications function assumes the following conditions: • Writing of parameters is possible in during remote operation. Also, parameters cannot be written during execution of auto-tuning; • Writing parameters are provided with a setting level. Writing conditions are as follows depending on the setting level: Setting level 1: No restrictions Setting level 0: Writing of parameters in the setup and expansion modes only is prohibited. • For details on switching between setting levels, see page 6-9. • The “run/stop”, “remote/local” and “AT execute/cancel” parameters are set aside from other parameters as special commands for instructing operations.
J Transfer procedure
The host computer sends a “command frame” to the controller, and the controller returns a “response frame” corresponding to the content of the command sent by the host computer. In other words, a response frame is returned for each command frame sent. The following diagram shows command frame/response frame operations. Command frame
Command frame
Host computer E5CK Response frame
J Interface
6--2
The host computer carries out communications conforming to the RS-232C or RS-485 interface specifications. Option units supporting the RS-232C and RS-485 specifications are as follows: • Option units E53-CK01 (RS-232C) E53-CK03 (RS-485)
Page 98
E5CK
6.2 Preparing for Communications
6.2 Preparing for Communications For details on wiring when using the communications, see Chapter 2 Preparations.
J Cable connections F RS-232C
• Only one controller can be connected to the host computer. • The cable length should not exceed 15 meters. • Use shielded twisted-pair cables (AWG28 or more) for the cables.
25 pins
E5CK
IBM-PC/XT DE-25 Female DTE
9 pins
RS-232C No.
(SD) TXD
2
(RD) RXD
3
13 SD 14 RD 1 SG
E5CK
IBM-PC/AT DE-25 Female DTE
RS-232C
(RD) RXD
2
(SD) TXD
3
(RS) RTS
4
(ER) DTR
4
(CS) CTS
5
(SG) COMMON
5
(DR) DSR
6
(DR) DSR
6
7
(RS) RTS
7
(CS) CTS
8
FG
1
(SG) COMMON (ER) DTR
20
FG
1
F RS-485
No.
13 SD 14 RD 1 SG
• Up to 32 controllers including a computer can be connected to the host computer. • The total cable length should not exceed 500 meters. • Use shielded twisted-pair cables (AWG28 or more) for the cables. • Attach terminators to the controllers at both ends of a series of controllers connected in an open configuration. For example, in the following configuration, connect the terminator to the host unit and the unit No.30, and do not connect terminators to unit Nos.0 to 29. • Use terminators having a resistance of 120Ω (1/2 W). The total resistance of both ends should be at least 54Ω . Host computer RS-485
Shielded cable
+ FG
E5CK (No.0) RS-485
E5CK (No.30) RS-485
No.
No.
13 A
13 A
14 B
14
B
A < B : Mark A > B : Space Terminator (120Ω 1/2W)
6--3
Page 99
E5CK
CHAPTER 6 USING THE COMMUNICATIONS FUNCTION
J Setting the communications specifications
Match the communications specifications of the host computer and E5CK controller. When two or more controllers are connected to the host computer, make sure that the communications specifications of all controllers are the same. This section describes how to set the communications specifications of the E5CK controller. For details on the host computer, see the relevant manual supplied with the host computer.
F Communications parameters
Set the communications specifications of the E5CK in the controller’s communications parameters. The communications parameters are set on the front panel of the E5CK controller. The following table shows the communications parameters provided on the E5CK controller and their respective settings.
Parameter/Symbol
Setting
Set Value
Unit No.
0 to 99
0
Baud rate
1.2/2.4/4.8/9.6/19.2 (kbps)
1.2/2.4/4.8/ 9.6 /19.2 to 99
Bit length
7/8 (bit)
7 /8
Parity
None/even/odd
Stop bit
1/2
/
/
1/ 2 Inverted items are factory-settings.
6--4
Page 100
E5CK
6.3 Command Configuration
6.3 Command Configuration Command configuration is as follows and are paired with a response.
F Command
2B @
1B
Unit No.
2B
4B
2B
Command code
Data
FCS
2B
*
CR
Command type
F Response
2B @
Unit No.
1B
2B
2B
4B
2B
Command code
End code
Data
FCS
2B
*
CR
Command type
• “@” The start character. This character must be inserted before the leading byte. • Unit No. Specifies the “unit No.” of the E5CK. If there are two or more transmission destinations, specify the desired destination using “unit No.” • Command type Specifies the command type by codes “1” to “3”: parameter read, parameter write and special commands. • Command code Specifies the command for each command type. With parameter read/ write commands, this becomes the parameter No. • Data Specifies the set value or setting content. In the parameter read command, set dummy data “0000”. In the response, this is inserted only when the end code is “00”. • End code Sets the communication results. For details on the types and meanings of end codes, see 6.5 How to Read Communications Error Information (page 6-10). • FCS (Frame Check Sequence) Set the frame check results from the start character to the data section. For details on the frame check, see 6.6 Program Example (page 6-12). • “*” “CR (Carriage Return) code” Indicates the end (terminator) of the command or response block.
6--5