System information

General Reference Guide IO Servers Configuration
RG-001-0-EN ver 1.5 eWON® - 20/03/2009 - ©ACT'L sa Page 118
Example of use of SN_LO and SN_HI items in a Basic program:
For instance, you can define a Tag for the digital input 1 as follows:
Server name: EWON - Topic: empty - Address: DI1
IO Server configuration Comment
IO Server Name EWON
Topic Name SYS
Item Name SN_LO Serial number, low part (see example of use below) Analog
SN_HI Serial number, high part (see example of use below) Analog
SYS_UP Number of seconds since Power Up Analog
GSM_REG
GSM Status:
1: Home network
2: Searching registration
3: Registration denied
4: unknown registration
5: Roaming
100: Not applicable
101: Registration in progress
usually:
1 or 5: means registered
Other: not registered
Analog
GSM_LEV GSM level (antenna reception) Analog
Table 95: eWON IO server configuration parameters - SYS topic
a% = Int(SN_HI@ * 65536) + Int(SN_LO@)
Rem Product code
b% = a% Mod 256
Rem Sequential number
c% = Int(a% / 256) Mod 1024
Rem Week number
d% = Int(a% / 262144) Mod 64
Rem Year number
e% = Int(a% / 16777216) Mod 128
Print "SN: ";e%;" ";d%;"-";c%;"-"b%
eWON500
eWON2001
eWON4001
eWON2101
eWON4101
eWON2005
eWON4005
DI1 Status of input 1 on connector Input/output (bottom side)
CI1 Counter on input 1 on connector Input/output (bottom side)
LI1 Latched counter on input 1 on connector Input/output
DO1 Digital command of output 1 on connector Input/output
BI1 Status of button (reset) on the front face
Table 96: Available Items for eWON product type