Appendix L How To Detect The Status Of Dual Battery And The Ethernet Port - ICP DAS USA ISaGRAF WinCE ViewPAC User Manual

Table of Contents

Advertisement

Appendix L How to Detect the Status of Dual Battery and the
NOTICE:
Please power off the Controller before replacing the battery; it may cause permanent damage if the
battery accidently touches other metal electronic parts.
The ViewPAC equips a 512 KB SRAM with dual battery design to retain the data even in the case of total
power loss. This dual battery design allows for the replacement of one of the batteries without losing
power and thus not losing the data stored in the memory.
batteries at the same time or the data will be lost during this period of non-power.)
Use "R_MB_ADR" function to Detect the Status of Dual Battery
Use the Function "R_MB_ADR" and assign its parameter "ADR" as "9992" and "9993" to read the
batteries' status. Show as the 1
ADR number "9992" : the status of battery number 1.
ADR number "9993" : the status of battery number 2.
Use "R_MB_ADR" function to Detect the Status of Ethernet port
Use the Function "R_MB_ADR" and assign its parameter "ADR" as "9987" to read the status of the
Ethernet ports. Show as the 3
ADR number "9987" : the status of LAN1.
Name
batery1
batery2
lan1
After executing the program:
1. The return values for parameters "batery1" & "batery2" status:
"99" : Power ok, no require to replace the battery at the moment.
"0" : Low power status; please replace the battery as soon as possible.
2. The return values for parameters "lan1" status:
"1" : ok.
"0" : broken-line.
Ap-32
Ethernet Port
st
nd
and 2
rd
line of the LD program listed as below.
Type
Attrib.
Integer
Internal
Integer
Internal
Binary
Internal
ISaGRAF WinCE ViewPAC User Manual , V.1.6 , 1/2017 by ICP DAS
(Warning:
line of the LD program listed as below.
ADR
9992
9993
9987
Please do not take out these two
Description
Detect the status of battery 1.
Detect the status of battery 2.
Detect the status of LAN1.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vp-25w7Vp-23w7Vp-4137Vp-25w6Vp-23w6Vp-4136

Table of Contents