Sample Program For Host - Omron V680 Series User Manual

V680 series devicenet id slave, antennas and id tags
Hide thumbs Also See for V680 Series:
Table of Contents

Advertisement

Sample Program for Host

SampleProgram1
The following is an example of reading 4 bytes from an ID Tag in Trigger (SYNC) Mode starting with
address 10 hex.
Using 4-byte Access Mode
Node Address Switch and Mode Switch Settings
First Cycle Flag
0.00
1520.00
Node 00
External
connected
input
W0.03
1520.00
External input
Node 00
turned ON
connected
W0.00
Self-holding bit for
external input
1520.00
3300.00
External input
NORMAL
turned ON
output
W0.01
NORMAL output
turned ON
1520.00
3300.01
Node 00
ERROR
connected
output
W0.02
ERROR output
turned O
For information on the timing chart in Trigger (SYNC) Mode, refer to Mode Switch Settings 0 to 2 (4-byte, 26-byte, and 58-byte
Access Modes)in this section.
p.69
Node Address switchs: "00"
Mode swith: "4CH"
1.00
1.01
Error
Normal
completion
completion
I/O Settings and Control Methods
MOV
Set a 4-byte data read in Trigger (SYNC)
#0004
Mode.
3200
Set the starting read address in the ID Tag
MOV
#0010
to 0010 hex.
3201
Upward Differentiation
DIFU
W0.03
Detect when the external input turns ON.
3200.15
TRG
W0.00
Self-holding bit for
external input
Upward Differentiation
DIFU
Detects when the NORMAL output turns ON
W0.01
BLOCK TRANSFER
XFER
&2
Two words (4 bytes) of read data are transferred
3302
starting from word Y+2 in the data storage area
D0
to the addresses starting from D0.
1.00
Processing completed normally
Normal
completion
Upward differentiation
DIFU
W0.02
Detects when the ERROR output turns ON.
1.01
Processing ended in an error
Error
completion
Section 5
RFID System
75
User's Manual

Advertisement

Table of Contents
loading

Table of Contents