Sample Program - AND Device Net.Interface AD-4402 OP-21 Instruction Manual

Devicenet interface
Table of Contents

Advertisement

8. 8. 8. 8. Sample Program

Sample Program
Sample Program
Sample Program
This sample program uses the PLC C200HE made by the OMRON Corporation.
Construction of network: Master: 1 unit, AD-4402: 1 unit. The scan list is stored in the
scanner.
IN DATA: 350 to 357 ch
OUT DATA: 50 to 53 ch
Input module is installed in the slot 4th.
In this example, there are some unused data in IN DATA and OUT DATA.
Operation
When pressing the start button, a final value (1000) is set to material code (No.5) and
batch programming is performed.
Procedure of command is as follows:
1. Setting material code.
2. Inputting a final value.
3. Recalling program of material code.
Used Relays and Memory Map
Used Relays
Channel. No.
253.15
253.13
255.06
Channel. No.
2.00
2.01
2.03
2.04
2.05
4.00
Memory Map
Data
Memory No.
DM50
DM51
DM53
DM54
DM100
DM101
DM102
DM103
# This sample program does not use the channel data.
Relay Name
Function
Special relay
At start, it is scanned once.
Special relay
It is always ON.
Special relay
When result is "equal" or "0", it is tuned on.
Relay Name
Function
Internal relay Control of command request flag
Internal relay Check condition to receive a command
Internal relay Control of start signal
Internal relay Detection to turn on start signal
Internal relay Detection to turn off command reply flag
I/O relay
Start
Function
Sequence No. (BCD)
Slave ready
Dummy
Sequence No. (Binary)
IN DATA at 1st ch #
IN DATA at 2nd ch #
IN DATA at 3rd ch #
IN DATA at 4th ch #
Data
Memory No.
DM104
DM105
DM106
DM107
DM200
DM201
DM202
DM203
Page 20
Function
IN DATA
at 5th ch #
IN DATA
at 6th ch #
IN DATA
at 7th ch #
IN DATA
at last ch
OUT DATA at 1st ch
OUT DATA at 2nd ch
OUT DATA at 3rd ch #
OUT DATA at last ch
AD-4402 OP-21

Advertisement

Table of Contents
loading

Table of Contents