Hitachi L100DN DeviceNet Series Addendum Read This First Manual page 63

Table of Contents

Advertisement

Step 9 – Create a Host Computer Control Program
This section will provide an outline for constructing an example program for your host
computer control application. The example will use a simple forward and reverse
rotation for the velocity profile. Control programs for DeviceNet exist in a variety of
languages (relay ladder logic, flow charts, high-level language, etc.). Therefore, the
example program will be generic. It will use polled I/O for sending the basic commands
and to get parameters, but your program could also use explicit messaging to access any
inverter parameter.
The following diagram shows the polled I/O data transmitted on a single network scan.
At the moment of the scan, the inverter output is running the motor in the forward direc-
tion at 20.00Hz. The acceleration and deceleration times are set to 10.0 seconds.
Polled I/O Data
The figure below shows the velocity profile for the example program. It consists of a
forward rotation followed by a reverse rotation. The program will send the commands
and parameter values to set the speed and accel/decel values.
Program Example
f
Forward
rotation
Reverse
rotation
Command Bit Sequencing – The order of 0-to-1 transitions of the host computer's
Word 0 command bits is important. First, set the Network Control bit (bit 5) and/or the
Network Reference bit (bit 6) as needed. Then you can set the FW Run or RV Run bit to
rotate the motor. If either Run bit is set = 1 before the Network Control bit is set = 1, the
inverter will ignore the request.
Host output data, 4 words
Word 0 – Command bits 0061h 97
Word 1 – Output freq.
Word 2 – Accel value
Word 3 – Decel value
Host input data, 4 words
Word 0 – Status
Word 1 – Freq. monitor 07D0h 2000
Word 2 – Current monitor000Bh 11
Word 3 – Trip code
accel/decel = 10sec.
freq. = 25Hz
freq. = 10Hz
L100DN Inverter
07D0h 2000
0064h 100
0064h 100
0111h 273
0000h 0
accel/decel = 20sec.
freq. = 15Hz
63
t

Advertisement

Table of Contents
loading

Table of Contents