Omron V530-R160E User Manual page 233

2d code reader
Hide thumbs Also See for V530-R160E:
Table of Contents

Advertisement

 Program Examples
This is a program in which a read command is sent from the programmable controller (model
CQM1H) and the data read by the controller is received by the CQM1H.
1.
Set the reading conditions of the V530-R160 and set the reading mode to RUN mode.
2.
Send the read command from the programmable controller.
The controller performs reading.
The data received at the CQM1H is saved starting from DM0200.
000000
Sample ladder program
000001
Programming to send read command
0.01
Switch
(Executed only
once.)
50.00
000002
000003
Programming to receive read data
AR8.06*
000004
000005
*AR8.06: RS-232C port reception completed flag
DIFU
Upward Differentiation
(13)
DIFU:
50.00
Sends @GL command.
TXD
TXD:
(48)
DM100
DM100: First source word
0
#0:
3
#3:
BSET
Clears DM200 to DM220.
(71)
BEST: BLOCK SET
0000
DM200
DM220
Stores the read data in order from DM200.
RXD
RXD:
(47)
DM200
DM200: First destination word
0000
#0000: Control data
AR9
AR9:
END
END:
(01)
SECTION 8
Communication with the Host
Turns ON the work bit for 1 scan when the
logic result goes from OFF to ON.
TRANSMIT
Sends the specified number of bytes from
the specified port.
Control data
Number of bytes sent
Sets consecutive words to the same value.
Sets DM200 to DM220 to #0000.
RECEIVE
Reads the specified number of bytes from
the data received at the specified port.
Number of bytes received
The end of the program.
Operation Manual
V530-R160
231

Advertisement

Table of Contents
loading

This manual is also suitable for:

V530-r160ep

Table of Contents