Omron V680-HAM91 User Manual page 68

Id flag sensors v680-series id system
Hide thumbs Also See for V680-HAM91:
Table of Contents

Advertisement

Section 5
Control I/O Interface
Detecting Disconnection
This sample program shows a programming example for detecting disconnection of data output lines
(16 lines) by using the parity output.
Mode setting switch settings
RFID System
66
User's Manual
00.10
SW
100.01
100.07
Start
End
110.00
Self-holding
00.00
NORMAL output
100.00
Upwardly
differentiated
status of
00.02
NORMAL output
PARITY output
P_CY
Carry flag
100.02
Disconnection
Detected
100.03
Cable Disconnection Indication
When the external SW turns ON,
DIFU
INHIBIT/TRIG input turns ON, and the ID Flag
100.01
Sensor starts communications.
02.00
INHIBIT/TRIG input
110.00
Self-holding
DIFU
Detects when NORMAL output
turns ON.
100.00
Counts the number of ON bits in the data output
BCNT
bits(OD0 to OD15) and store in the DM0000.
#0000
1
D0000
Add the PARITY output result to the data output
++
bits ON number. (Even : normal, Odd : error)
D0000
ASR
Check the PARITY results. When the results is
odd(error), P_CY flags turns ON.
D0000
100.02
Disconnection Detected
If the number is odd, there is a disconnection.
100.07
End
100.03
Cable Disconnection Indication
Indicates the disconnection.

Advertisement

Table of Contents
loading

Table of Contents