6.6 Program Example
E5EK
6--17
6.6 Program Example
J
How to use programs
The program described below obtains 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 gener-
ated, and need not be input.
CR
Unit
No.
Command
code
Data
FCS
Command type
@
*
2B
2B
1B
2B
4B
2B
Input these data.
These are automatically
generated.
The output format is as follows. The content of the response frame is displayed as it
is.
Unit
No.
Command
code
Data
FCS
Command type
CR
End
code
@
*
2B
1B
2B
4B
2B
2B
2B
F
Procedure
(1) Read the program.
(2) Enter “RUN”.
(3) When “send data:” is displayed, enter the command data (from @ to the com-
mand string).
(4) The content of the response frame is displayed following “receive data:”.
F
Conditions when running a program
•
Set the communications conditions as follows:
Baud rate : 9600 bps
Bit length : 7 bits
Parity
: Even
Stop bit
: 2
•
Make sure that the communications cable is properly connected.
Summary of Contents for E5EK
Page 1: ...User s Manual Cat No H089 E1 02 Digital Controller Programmable Type...
Page 24: ...CHAPTER 1 INTRODUCTION 1 14...
Page 36: ...CHAPTER 2 PREPARATIONS 2 12...
Page 162: ...CHAPTER 6 USING THE COMMUNICATIONS FUNCTION 6 20...
Page 176: ...CHAPTER 7 CALIBRATION 7 14...
Page 193: ...SETTING LIST A 11...