:
DECIMAL
0x0001
1
Reply
0x0002
2
Reply
0x00FF
255
Reply
5. Metal Detector status MD:I.Data[0] is updated approximately every second and with every command exchange. See
the sample program rung 0.
BIT
0
Metal Detector Fault
1
Metal Detector Warning
2
Metal Detector Ready
3
Invalid Ethernet Command
4-14
15
No Reply From Metal Detector
6. The Metal Detector increments a 16-bit counter (heartbeat) and sends it back to the PLC MD:I.Data[5] with every
status update. See the ladder diagram rung 1 in Programa de Muestreo PLC .
HEX
Set Running Product (for example product 3) MOV 3 to MD:O.Data[2]
MOV 16#0001 to MD:O.Data[1]
MD:I.Data[0] contains Metal Detector status MD:I.Data[1] contains command 16#0001
MD:I.Data[5] contains Metal Detector heartbeat
See Sample Program ladder diagram rung 6
Read Running Product
MOV 16#0002 to EzMD:O.Data[1]
MD:I.Data[0] contains Metal Detector status MD:I.Data[1] contains command 16#0002
MD:I.Data[2] contains running product number MD:I.Data[5] contains Metal Detector
heartbeat
See Sample Program ladder diagram rung 5
No operation
MD:I.Data[0] contains Metal Detector status MD:I.Data[1] contains command 16#0000
MD:I.Data[5] contains Metal Detector heartbeat
See Sample Program ladder diagram rung 8 for automatic no-op insertion
Tabla 5-2. Comandos de Detección de Metales
DESCRIPTION
Fault
Warning
Ready
Invalid
No Reply
Tabla 5-3. Status MD:I.Data[0]
COMMAND
VALUE=1
© Rice Lake Weighing Systems ● All Rights Reserved
Apéndice
VALUE=0
No Fault
No Warning
Not Ready
Valid
Reply
71