The text of a manual · part 11 of 14
E5CK Digital Controller User's Manual, pages 101 to 110
Pages 101 to 110 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 101
E5CK
CHAPTER 6 USING THE COMMUNICATIONS FUNCTION
6.4 Commands and Responses This section describes commands and response in detail. The conventions used in this section and data restrictions are as follows: • Data is expressed in 1-byte units and in ASCII code. • When the read or write data is a numerical value, the data to be set must conform to the following conditions: (1) The decimal point “.” is not indicated in fractions. (2) The leftmost bit of minus numerical data must be expressed as follows: [example] 10.0=[0100], -150.0=[A500], -15=[F015]
J Reading/writing parameters F Reading parameters Command
Response
@
@
F Writing parameters Command
Response
@
@
2B
2B
Unit No.
Parameter No.
1
4B
2B
2B
FCS X
X
X
X
* CR X: Any value acceptable
2B
2B
2B
4B
2B
Unit No.
Parameter No.
End code
Read data
FCS
1
*
2B
2B
4B
2B
Unit No.
Parameter No.
Write data
FCS
2
CR
2B
*
CR
2B
2B
2B
4B
2B
Unit No.
Parameter No.
End code
Write data
FCS
2
2B
2B
*
CR
Reading or writing of the parameters of a specified controller is executed. • Writing is possible only during remote operation. • Reading is impossible during executing auto-tuning. • The followings are set aside as special commands. For details, see page 6-9. “run/stop”, “remote/local”, “AT execute/cancel” • For details on parameters in each setting level, see the tables on pages 6-7 and 6-8.
Writing the Set Value
6--6
With X format “MA” and “ME” commands (see page A--- 12), you can select non-volatile RAM or RAM as the memory for the set value. The limit for the number of times that non-volatile RAM can be written to is 100,000 times. When the number of times that the set point is written exceeds this limit, set RAM write mode as the memory.
Page 102
E5CK
6.4 Commands and Responses
Parameter No.
Parameter
Data Setting and Monitor Range
00
PV monitor
*1
86
SP monitor during SP ramp
*1
04
MV monitor (heat)
*1
--5.0 to 105.0
42
MV monitor (cool)
*1
0.0 to 105.0
01
Set point
02
Alarm value 1
--1999 to 9999
03
Alarm value 2
--1999 to 9999
41
Alarm value 3
--1999 to 9999
19
Proportional band
0.1 to 999.9
20
Integral time
0 to 3999
21
Derivative time
0 to 3999
22
Cooling coefficient
0.01 to 99.99
09
Dead band
--19.99 to 99.99
23
Manual reset value
0.0 to 100.0
06
Hysteresis (heat)
0.01 to 99.99
43
Hysteresis (cool)
0.01 to 99.99
07
Control period (heat)
1 to 99
08
Control period (cool)
1 to 99
44
SP ramp time unit
0: Minutes, 1: Hours
45
SP ramp set value
0 to 9999
46
LBA detection time
Mode
Scaling lower limit -10% to scaling upper *2 limit +10% Set point lower limit to set point upper limit *3
Level 0
Set point lower limit to set point upper limit
Level 1
0 to 9999
47
MV at stop
--5.0 to 105.0
48
MV at PV error
--5.0 to 105.0
50
MV upper limit
MV lower limit +0.1 to 105.0
49
MV lower limit
--5.0 to MV upper limit --0.1
51
MV change rate limit
56
Input digital filter
0 to 9999
25
Alarm 1 hysteresis
0.01 to 99.99
26
Alarm 2 hysteresis
0.01 to 99.99
52
Alarm 3 hysteresis
0.01 to 99.99
53
Input shift upper limit
--199.9 to 999.9
54
Input shift lower limit
--199.9 to 999.9
0.0 to 100.0
*4 *4
*5
Level 2
*1 Possible only during reading *2 During temperature input, the range becomes the range of use of the selected sensor. *3 During heating and cooling control, the range becomes 0.0 to 105.0. *4 During heating and cooling control, the range becomes -105.0 to 105.0. *5 During heating and cooling control, the range becomes -105.0 to MV upper limit -0.1.
About invalid parameters
Currently, if a command is used for invalid parameters (parameters that do not satisfy the conditions of use in Chapter 5), the “undefined” error (end code: IC) is output.
6--7
Page 103
E5CK
CHAPTER 6 USING THE COMMUNICATIONS FUNCTION
Parameter No.
Parameter
Data Setting Range 0 to 21
Mode *1
57
Input type
59
Scaling upper limit
Scaling lower limit +1 to 9999
58
Scaling lower limit
--1999 to scaling upper limit --1
60
Decimal point
0 to 3
30
_C/_F selection
0 : _C, 1 : _F
61
Control output 1 assignment
0 to 4, 6
*2
62
Control output 2 assignment
0 to 4, 6
*2
63
Auxiliary output 1 assignment
2 to 4, 6 to 8
*3
65
Alarm 1 type
1 to 11
*4
66
Alarm 1 open in alarm
67
Alarm 2 type
68
Alarm 2 open in alarm
69
Alarm 3 type
70
Alarm 3 open in alarm
0: closed in alarm, 1: open in alarm
71
Direct/Reverse operation
0: Reverse operation, 1: Direct operation
28
Set point upper limit
*5
Set point lower limit +1 to scaling upper limit
27
Set point lower limit
*5
Scaling lower limit to Set point upper limit --1
72
PID / ON/OFF
73
ST
34
ST stable range width
0.1 to 999.9
35
α
0.00 to 1.00
85
AT calculated gain
0.1 to 10.0
37
Standby sequence reset method
0, 1
36
Automatic return of display mode
0 to 99
93
AT hysteresis
0.1 to 9.9
55
LBA detection width
0.0 to 999.9
Setup
0: closed in alarm, 1: open in alarm 1 to 11
*4
0: closed in alarm, 1: open in alarm 1 to 11
*4
0: Advanced PID, 1: ON/OFF 0 : OFF, 1 : ON
Expansion *6
*1 See page 5-22. *2 0: Control output (heat), 1: Control output (cool), 2: Alarm 1, 3: Alarm 2, 4: Alarm 3, 6: LBA. *3 2: Alarm 1, 3: Alarm 2, 4: Alarm 3, 6: LBA, 7: Error 1, 8: Error 2 *4 See page 5-25. *5 During temperature input, the range becomes the range of use of the selected sensor. *6 See page 5-30.
Reading the status
6--8
To read the E5CK controller status, use the X format “RX” command. For details, see the Appendix: X Format Head List (page A-13).
Page 104
E5CK
6.4 Commands and Responses
J Issuing special commands Command
Response
@
@
2B
2B
4B
2B
Unit No.
Command code
Instruction code
FCS
3
2B
*
CR
2B
2B
2B
4B
2B
Unit No.
Command code
End code
Instruction code
FCS
3
2B
*
CR
The following functions are issued as special commands. • Run/Stop Runs or stops programs. This command cannot be issued in setting level 1. Run/Stop can be switched up to 100,000 times. • Remote/Local Selects remote operation or local operation. • AT Execute/Cancel Executes or cancels auto-tuning. This command cannot be issued in setting level 1. • Move to setting level 1 Issue this command when writing parameters in setup and expansion modes. • Software reset A response is not returned to this command. Also, communications with the E5CK cannot be carried out for five seconds after reset. The following table shows the special commands that are available on the E5CK controller. Command No. 00 02
About Setting Levels
Command Run/Stop Remote/Local
07
AT Execute/Cancel
09 11
Move to setting level 1 Software reset
Instruction Code 0000: Run, 0001: Stop 0000: Remote, 0001: Local 0000: Cancel, 0001: 40%AT execution, 0002: 100% AT execution 0000 0000
To return to setting level 0 from setting level 1, issue the “software reset” command. If the parameter write command is issued for the setup and expansion modes in setting level 0, an error occurs, and the end code (0D = Command cannot be executed) is returned.
6--9
Page 105
E5CK
CHAPTER 6 USING THE COMMUNICATIONS FUNCTION
6.5 How to Read Communications Error Information The result of communications on the E5CK can be checked by the end code in the response frame. Use this end code to remedy errors that may occur.
J End code
Communications are normal when the end code in the response is “00”. If the end code is not “00”, this indicates that an error other that is not an undefined error has occurred. The end code format is as follows and does not contain a data area. 2B @
1B
Unit No.
2B
2B
2B
Command code
End code
FCS
2B
*
CR
Command type
End code
0D
Code name
F Description
F Action End code
10
Command cannot be executed
• Writing was carried out during local operation. • Writing was carried out during executing auto-tuning. • An attempt was made to execute 40%AT during heating and cooling control. • An attempt was made to switch run/stop in setting level 1. • An attempt was made to execute AT in setting level 1. • Issue the parameter read or write commands in conditions other than above.
Code name
Parity error
F Description
Parity check error was detected in the received data.
F Action
Check the communications condition. If the communications condition of the host computer and E5CK controller match, then a probable cause is a problem in the communications circuit of one or both of the host computer and E5CK controller.
End code
11
Code name
Framing error
F Description
Stop bit cannot be detected.
F Action
Check the communications condition. If the communications condition of the host computer and E5CK controller match, then a probable cause is a problem in the communications circuit of one or both of the host computer and E5CK controller.
About the unit No.
6--10
Responses are not returned unless the target unit for communications and the unit No. in the command match.
Page 106
E5CK
6.5 How to Read Communications Error Information
End code
12
Code name
Overrun error
F Description
The receive buffer overflowed.
F Action
Check the communications condition. If the communications condition of the host computer and E5CK controller match, then a probable cause is a problem in the communications circuit of one or both of the host computer and E5CK controller.
End code
13
Code name
FCS error
F Description
The FCS (Frame Check Sequence) do not match.
F Action
Check the FCS program.
End code
14
Code name
Format error
F Description
The received command length does not match the length defined in the frame format.
F Action
Check the communications condition. If the communications condition of the host computer and E5CK controller match, then a probable cause is a problem in the communications circuit of one or both of the host computer and E5CK controller.
End code
15
Code name
Setting range error
F Description
Numerical values or code values in the data are not within the setting range.
F Action
Check the parameter and read or write data of special commands.
J Undefined error 2B @
F Description
Unit No.
2B
2B
2B FCS
I
C
*
CR
• An undefined header code has been received. • A currently invalid parameter (e.g. the scaling command during temperature input) has been received.
F Action
• Check the parameter No.
6--11
Page 107
E5CK
CHAPTER 6 USING THE COMMUNICATIONS FUNCTION
6.6 Program Example
J How to use programs The program described below is for obtaining corresponding response frame data when some of the command frame data is input. The input format is as follows. The FCS and terminator are automatically generated, and need not be input. 2B @
1B
Unit No.
2B
4B
2B
Command code
Data
FCS
2B
*
CR
Command type Input data
Automatically generated
The output format is as follows. The content of the response frame is displayed as it is. 2B @
1B
Unit No.
2B Command code
2B End code
4B
2B
Data
FCS
2B
*
CR
Command type
F Procedure (1) Read the program. (2) Enter “RUN”. (3) When “send data:” is displayed, enter the command data (from @ to the command string). (4) The content of the response frame is displayed following “receive data:”.
F Conditions when running a program • Set the communications condition as follows: Baud rate Bit length Parity Stop bit
: : : :
9600 bps 7 bits Even 2
• Make sure that the communications cable is properly connected.
6--12
Page 108
E5CK
6.6 Program Example
J Program list (language: IBM PC COMPATIBLE MACHINE)
1000 ’ 1010 ’ PROGRAM : E5CK Communication Program 1020 ’ For IBM PC COMPATIBLE MACHINE 1030 ’ VERSION : 1.00 1040 ’ Copyright (C) 1995 OMRON Corporation All Rights Reserved. 1050 ’ 1060 ’ RS-232C SPEED: 9600BPS, PARITY: EVEN, DATA: 7, STOP: 2 1070 OPEN ”COM: 9600, E, 7, 2, CD0, CS0, DS0, RB256, RS ”FOR RANDAM AS #1 LEN=256 1080 REPEAT 1090 ’ Make Command 1100 PRINT ”send data : ” ; 1110 INPUT SEND$ 1120 ’ FCS calculation 1130 FCS=0 1140 FOR IFCS=1 TO LEN (SEND$) 1150 FCS=FCS XOR ASC (MID$ (SEND$, IFCS, 1)) 1160 NEXT 1170 FCS$=RIGHT$ (”0”+HEX$ (FCS), 2) 1180 ’ Send data to communication port 1190 PRINT #1, SEND$+FCS$+”*” 1200 ’ Receive data from communication port 1210 RECCNT=0: TMP$=”” 1220 DRECLOOP: 1230 IF LOC (1) <> 0 THEN DREC1 1240 RECCNT=RECCNT+1 1250 IF RECCNT=5000 THEN *DRECERR ELSE DRECLOOP 1260 ‘DREC1 1270 TMP$=TMP$+INPUT$ (LOC (1), #1) 1280 IF RIGHT$ (TMP&, 1)=CHR$ (13) THEN DRECEND ELSE RECCNT=0: GOTO DRECLOOP 1290 DRECERR: 1300 TMP$=”No response !!” 1310 DRECEND: 1320 RECV$=TMP$ 1330 PRINT ”response: ”; RECV$ 1340 ’ Repeat to make Command 1350 GOTO REPEAT 1360 ’ END 1370 CLOSE #1 1380 END
6--13
Page 109
E5CK
CHAPTER 6 USING THE COMMUNICATIONS FUNCTION
J Examples of use F Set the unit No. to “00” • In the following examples, data is shown in individual blocks to make the examples easier to understand. However, when actually creating programs, do not leave spaces between frame items. Also, response are displayed without spaces between frame items.
F Set the set point to “300.0” • Input data @ 00 2 01 3000 300.0 Set point Write parameter
• Response @ 00 2 01 00 3000 (FCS) * Normal end
F Start running • Input data @ 00 3 00 0000 Run Run/Stop Special command
• Response @ 00 3 00 00 0000 (FCS) * Normal end
F Monitor process value • Input data @ 00 1 00 0000 Dummy data Monitor process value Read parameter
• Response @ 00 1 00 00 2000 (FCS) * Process value = 2000 Normal end
6--14
Page 110
CHAPTER 7 TROUBLESHOOTING
7
CHAPTER 7 TROUBLESHOOTING This chapter describes how to find out and remedy the cause if the E5CK does not function properly.
7.1 Initial Checks . . . . . . . . . . . . . . . . . . . . . . . . . .
7---2
7.2 How to Use the Error Display . . . . . . . . . . .
7---3
7.3 How to Use Error Output . . . . . . . . . . . . . . .
7---5
7.4 Checking Operation Restrictions . . . . . . . .
7---6
7--1