User guide
eWON 500-2001-4001-4002 User Guide - IO Servers Configuration
eWON 500®2001®4001®4002® Version 4_3_0 - User Guide - 10/5/05 - ©ACT'L sa - Page 107
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 78: 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
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 on front face
eWON4002
DI1... DI8 Status of input 1 to 8 on connector DI1-DI8 (top side)
CI1... CI8 Counter on input 1 to 8 on connector DI1-DI8 (top side)
LI1... LI8 Latched counter on input 1 to 8 on connector DI1-DI8 (top side)
DI9 Status of input 9 on connector Input/output (bottom side)
CI9 Counter on input 9 on connector Input/output (bottom side)
LI9 Latched counter on input 9 on connector Input/output (bottom)
DO1... DO2 Digital command of relay 1 and 2 on relay connector (bottom side)
DO3 Digital command of output 1 on connector Input/output (bottom)
BI1 Status of button on front face
AI1... AI4 Value of analog input 1 to 4
AI5... AI6 Value of analog input 5 to 6 (PT100 probes)
Table 79: Available Items for eWON product type