Hitachi HSC-2100 Hardware Manual page 120

I/o modules
Table of Contents

Advertisement

(f) Bit organization in data areas
The bit organization of the EW storage locations in a data area is as shown below.
EW△▲0
This bit organization makes it possible to use control codes and status codes either as
arithmetic functions or coils. For example, a ladder program can use the following
arithmetic function or coil to make a preset-start:
An arithmetic function to make a preset-start:
A coil to make a preset-start:
(g) Example program
An example program using a pulse counter module is given below. The following
describes what the program does, and shows the contents of the program.
• Operations: The program performs the following: 1) It starts an electric motor by
reception of a start signal from external source, 2) measures pulses that are
generated by an encoder rotating with the movement of a moving table, 3)
moves the table to a predetermined position, and then 4) stops the motor.
• Operational details: The program operates as detailed in Figure 5-4, "Operational
• Configuration: The things used in the program are as follows:
• Registering a registration number
In this example, the registration number 01 (EW400 to EW430) is assumed to be
registered for the pulse counter module.
15
14
13
2
2
2
E△▲2
E△▲1
E△▲0
Chart."
X020
Start signal
Y030
Rotate normally
Y031
Reverse
X010
"R=C" signal
X011
"R>C" signal
5-19
5 MAKING USE OF MODULES
2
1
0
2
2
2
E△▲F
E△▲E
E△▲D
DST
F
H4 = EW410
E41D
Moving
Electric
table
motor
Encoder
2-phase pulse signal

Advertisement

Table of Contents
loading

Table of Contents