Page 20
AD-4402 OP-21
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.
Relay Name
Function
253.15
Special relay
At start, it is scanned once.
253.13
Special relay
It is always ON.
255.06
Special relay
When result is "equal" or "0", it is tuned on.
Channel. No.
Relay Name
Function
2.00
Internal relay
Control of command request flag
2.01
Internal relay
Check condition to receive a command
2.03
Internal relay
Control of start signal
2.04
Internal relay
Detection to turn on start signal
2.05
Internal relay
Detection to turn off command reply flag
4.00
I/O relay
Start
Memory Map
Data
Memory No.
Function
Data
Memory No.
Function
DM50
Sequence No. (BCD)
DM104
IN DATA
at 5th ch #
DM51
Slave ready
DM105
IN DATA
at 6th ch #
DM53
Dummy
DM106
IN DATA
at 7th ch #
DM54
Sequence No. (Binary)
DM107
IN DATA
at last ch
DM100
IN DATA
at 1st ch #
DM200
OUT DATA at 1st ch
DM101
IN DATA
at 2nd ch #
DM201
OUT DATA at 2nd ch
DM102
IN DATA
at 3rd ch #
DM202
OUT DATA at 3rd ch #
DM103
IN DATA
at 4th ch #
DM203
OUT DATA at last ch
# This sample program does not use the channel data.
Summary of Contents for Device Net.Interface AD-4402 OP-21
Page 1: ...ふ Interface WM PD4000301 ...
Page 26: ...Page 24 AD 4402 OP 21 MEMO ...
Page 27: ... Blank page ...