background image

36

 - 

EM-481 

 

                                                                                                                                                

NOVATEK-ELECTRO

 

 

<act ref>

 - reference to the action of format An, where n is the index of the action.

 

Table C.8

 

– Types of responses 

<cond ref> 

ACT

 <act ref> 

Perform once

. If the condition occurred, but did not occur in the previous 

update, the action will be performed once 

<cond ref> 

REPEAT

 <act ref> 

Perform each time

. Regardless of the previous state, the action will be 

executed. The action will be executed even, if the state conditions are not 
defined in this update due to reading errors, but this condition has already 
happened earlier 

Example: 

!REACTS

 

* C0 ACT A0

 

* C1 REPEAT A1

 

 

3. Examples of programs 

Below there are examples of finished programs, each consists of a single task file. To run the sample on the 

EM-481 it is necessary: 

1)  Create a text file (with the extension 

".txt"

) with program text. 

2)  Put the file in the folder 

"TASKS"

3)  Put the prepared folder to the memory microSD card, formatted in FAT or FAT32. 
4)  Put the memory card in the EM-481. 

 

3.1. Example 1 

This example describes a program that in the event of fault of the device will send SMS with warning. In the 

text 3 

– MODBUS ID of the device is OM-310; 240 – is the register address which is monitored for the fault

.   

 

#enabling relay 1 depending on bit 0 of register 240 of device 3 
 
!META 
#8

th

 version of Protocol  

*PROTOCOLVERSION 8 
#program run will be fulfilled every 3 seconds 
* UPDATE 3 
#in case of error of the parameter reading, it will be read again 2 times 
* PARAMRETRIES 2 
#limit of response waiting for MODBUS query is 1000 msec = 1 sec 
* PARAMTIMEOUT 1000 
#after each query the delay is added, equal to the response waiting time, 
#so the other clients can perform their queries 
* PARAMLOADRATIO 50 
 
!DEVICES 
#ЕМ-481 can read and record no less than 120 registers per one query 
#note the second character * - it is MODBUS ID of the EM-481 device 
* * WRHANY 120 120 
#ОМ-310 has MODBUS ID equal to 3 and allows reading 4 registers per one query, 
#but to record only one register per one query 
* 3 WRHSINGLE 4 
 
!PARAMS 
#during each updating, it is required to read the storage register with address 
240, 
#from the device with MODBUS ID equal to 3 
#UINT16 – means that the 16-bit value and unsigned one (it can’t be less than 0) 
0 3 UINT16 H 240 
 
!VARS 
#copy zero bit of the register 240 
#now in the variable the parameter value is 240.0 
0 PARAMBIT P0 0 
!CONDS 
#variable V0 is compared with 1, condition is met, if V0 = 1 

Summary of Contents for EM-481

Page 1: ...development and production complies with the requirements of ISO 9001 2015 Dear Customer NOVATEK ELECTRO Ltd Company thanks you for purchasing our products You will be able to use properly the device...

Page 2: ...d via RS 485 9 5 2 2 3 Access to MODBUS network using MODBUS TCP 9 5 2 2 4 Access to MODBUS network using SMS 9 5 2 2 5 Data collection and event tracking 10 5 3 Configuration 10 5 3 1 General 10 5 3...

Page 3: ...THE HOUSING IT IS NOT ALLOWED WATER PENETRATION ON TERMINALS AND INTERNAL ELEMENTS OF THE DEVICE During operation and maintenance the regulatory document requirements must be met namely Regulations fo...

Page 4: ...ing and transferring data IP protocol is routable protocol for transferring data by Ethernet It is a part of TCP IP and used for Internet IP address is a node address which is unique within a single n...

Page 5: ...showing of warnings about detected faults 4 GSM LED is blinking every 3 sec when there is connection via GSM network or UMTS it is blinking 3 times per second while data exchanging via GPRS or HSPA 5...

Page 6: ...ort circuit output voltage of driver RS 485 maximum mA 250 Resistance of in built terminator Ohm 1000 The recommended number of connected devices in Modbus network when the input current of receivers...

Page 7: ...vice operation Check the device for damage after transportation in case of such damages detection contact the supplier or the manufacturer Carefully study the Operating Manual pay special attention to...

Page 8: ...in the SIM slot and connect the GSM antenna to the ANT connector SMA F connector 5 2 Using the device 5 2 1 General After power is turned on all indicators except LAN and GSM light up and EM 481 perf...

Page 9: ...addresses identifiers If the query could not be redirected for example in the RS 485 slave mode if the connection to the remote MODBUS TCP server was terminated the EM 481 can generate and send the MO...

Page 10: ...ters of address in Ethernet network if Ethernet is used and server address to which EM 481 is connected automatically The adjustable parameters are described in items 5 3 2 The parameters remain saved...

Page 11: ...ess MAC 48 from left to right 6 Table 5 5 Parameters describing the device Parameter Description Address Device type The code that defines the MODBUS product by the manufacturer 23 EM 481 0 Firmware v...

Page 12: ...d access tabs 0 no permission 1 there is permission Bit 6 It is always as 1 Bit 7 Permission for the connected client to configure EM 481 the same as register 121 0 no permission 1 there is permission...

Page 13: ...on to remote server Modbus TCP 0 connection to the remote server is set 1 connecting to the remote server 2 65534 the number of seconds before reconnecting 65535 Connection to the Modbus TCP server is...

Page 14: ...parameters Parameter Range of values Factory setting Description Address Ethernet network Static IP address IP address 192 168 0 111 If the dynamic addressing is switched off or not available IP addre...

Page 15: ...vice provider up to 24 characters 392 415 APN address of host Character string Provided by the GSM service provider up to 34 characters there cannot be spaces in a string 416 449 MODBUS TCP clients Co...

Page 16: ...tart bit 7 data bits 2 stop bits or parity bit and stop bit total is 10 bits The non standard byte formats register 461 values 4 and 5 are not available in this case format 3 2 stop bits is used inste...

Page 17: ...ssword This string should not have any spaces 540 549 The specified password for recording per mission via MODBUS TCP in devices using RS 485 Character string It is used to access devices connected to...

Page 18: ...Gateway Path Unavailable response is not returned to the client 1 255 if there is no connection to the query addressee this exception code is returned to the client 636 Enable RS 485 slave mode 0 1 0...

Page 19: ...aylight saving time 1 10 10 It is used if you selected the automatic transition to daylight saving time on the specified days Week of the month when the clock will be set one hour ahead 1 5 week of th...

Page 20: ...f clock for synchroniza tion s 1 180 2 It is used if you have enabled synchronization of clocks with the server clock The synchronization is performed after receiving the server time if the difference...

Page 21: ...ears once again 5 3 4 EM 481 configuring via MODBUS interface Setting via Modbus interface shall be provided if the device is connected using the Modbus client which is supporting the Modbus TCP proto...

Page 22: ...return and transfer it to the warranty post warranty service please indicate detailed reason for the return in the field of the claims data 8 TRANSPORTATION AND STORAGE The device in the original pack...

Page 23: ...in the GSM network is displayed alternately with the IP address in the local Ethernet network The operation speed with remote Modbus TCP server is improved The speed of GSM operation is increased 30...

Page 24: ...481 Parameter Value Addressing using DHCP Yes IP address 192 168 0 111 Subnet mask 255 255 255 0 Gateway 192 168 0 1 With the factory settings of the EM 481 two ways are possible for communicating wi...

Page 25: ...ter closing the windows answer yes 3 Connection to Internet via Ethernet ATTENTION THE USER IS STRONGLY RECOMMENDED TO CONNECT THE UNIT TO INTERNET UNDER THE SUPERVISION OF THE LAN SYSTEM ADMINISTRATO...

Page 26: ...om the client over the long period the access returns to locked mode ATTENTION DURING ANY CONNECTIONS EXCEPT FOR TRANSMITTING VIA GSM AND COMMUNICATION WITH SERVER VIA SPECIAL PROTOCOL EM 481 THE PASS...

Page 27: ...age in order to delete the device from Overvis system That guarantees that the EM 481 device will be used only by the authorized users Using the instruction on the site of Overvis system connect to EM...

Page 28: ...again the internal memory to re read the program Files can have arbitrary names and extensions and placed in subfolders of the folder TASKS Files placed directly in the folder TASKS allow you to use...

Page 29: ...s The file can contain comment lines that begin with and are ignored when reading the file Correct example Incorrect example This is a comment VARS number of seconds per minute 0 VAL 60 1 VAL 1 This i...

Page 30: ...eters in the task file which are accessed through RS 485 and GSM interfaces By default if no modifier is specified it is 0 PARAMACTUAL ushort Frequency of reading the parameters in seconds It allows o...

Page 31: ...in a single query WRHMULTIPLE uchar uchar Device can write only using function 16 in the storage registers The first argument specifies how many registers can be read in one query the second one deter...

Page 32: ...point 100 F32BLEEP3R 32 bit with reverse order of bytes and floating point 1000 F32WLEEP0R 32 bit with reverse order of words and floating point F32WLEEP1R 32 bit with reverse order of words and floa...

Page 33: ...all variables in the specified range VARSMINIDX var ref var ref The number of the minimum variable in the specified range VARSMAX var ref var ref Maximum of all variables in the specified range VARSMA...

Page 34: ...ref Copy of the condition CONDIS int Set to the specified value The condition is met if the value is not 0 It can be used for adjustment or for unconditional actions for each update cycle NOT cond ref...

Page 35: ...has the following format index action type argument 1 argument 2 Index the sequential number of the line The types of the arguments int 32 bit signed integer alarm reason is the number of reason of t...

Page 36: ...n the text 3 MODBUS ID of the device is OM 310 240 is the register address which is monitored for the fault enabling relay 1 depending on bit 0 of register 240 of device 3 META 8th version of Protocol...

Page 37: ...hieving the temperature respectively the lower or upper limits These registers are read only To change them you should be in configuration mode see it 5 3 4 then write the desired values to addresses...

Page 38: ...VARGEVAR V2 V1 in other cases do not change the hysteresis current value 2 CONDIS 1 VARS the desired hysteresis is selected from V3 V5 according to the conditions of C0 C2 6 VARSSELBYC V3 C0 CONDS is...

Page 39: ...ting select the file of updating The procedure for file selection is given in Table D 2 To cancel the updating cut off the power supply of EM 481 or wait until automatic completion of updating mode Ta...

Page 40: ...Similar to No 2 but the file with an error has less priority The error is automatically corrected with available files of updating 4 The files of updating are not available Escape from the mode of upd...

Reviews: