background image

~ 41 ~ 

NOVATEK-ELECTRO

                        

                                                                                   EM-486

 

1) Create a text file (with the extension 

".txt"

) and program text. 

2) Place the file in the folder 

"TASKS"

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

 

3.1 Example 1 

This example describes a program that in the event of fault of the OM-310 will turn on the 1st relay on EM-486. In the 

text 3 

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

.

   

 

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

 

!META 
#5

th

 version of Protocol 

* PROTOCOLVERSION 5 
# 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 

ЕМ

-486 can read and record no less than 120 registers per one query 

# note the second character * - it is MODBUS ID of the EM-486 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 l

ess 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 
0 VAREQVAL V0 1 
# condition is met, if the previous condition is not fulfilled and vice versa 
1 NOT C0 

 

!ACTS 
# enable the first relay, the second unit is the number of the relay 
0 RELAYON 1 1 
# disable the first relay 
1 RELAYOFF 1 1 

 

!REACTS 

if С0 condition is fulfilled (if 240.0 = 1), then hold the

 relay 1 enabled 

* C0 REPEAT A0 

if С1 condition is fulfilled (if 240.0 is not equal to 1), then the relay 1 is disabled

 

* C1 REPEAT A1 
# END 

 comment at the end of the file for correct reading

 

 

3.2 Example 2 

In this example, the program controls the hysteresis value on the second channel of the TR-101 device, depending on 

the temperature on the sensor of the first input of EM-486. In the text 16 

– MODBUS ID of the device is TR-101; 47 is the 

address of register for the hysteresis of the second channel 

ТР-101. 

The program uses registers in the field of current user settings 5500-5749. Registers 5500 and 5501 are reserved for 

the values respectively of the lower and upper temperature limits and the registers 5502 and 5503 are for the hysteresis 
value  to  be  set  in  TR-101  if  achieving  the  temperature  respectively  the  lower  or  upper  limits.  These  registers  are  read-

Summary of Contents for EM-486

Page 1: ...cation M 486 OPERATING MANUAL Quality control system on the production complies with requirements ISO 9001 2008 Dear customer Company NOVATEK ELECTRO LTD thanks you for purchasing our products You wil...

Page 2: ...486 6 3 TECHNICAL SPECIFICATION 6 4 DESIGN 7 5 THE INTENDED USE 7 5 1 Preparation for operation 8 5 2 Use of the EM 486 5 3 Settings 10 12 6 MAINTENANCE 30 7 SERVICE LIFE AND WARRANTY 30 8 TRANSPORTAT...

Page 3: ...CHANICAL DAMAGES OF THE CASE IT IS NOT ALLOWED WATER PENETRATION ON TERMINALS AND INTERNAL ELEMENTS OF THE PRODUCT During operation and maintenance the regulatory document requirements must be met nam...

Page 4: ...lly obtaining the parameters of TCP IP IP address Ethernet is a standard for packet network communication and transmitting data between units e g PCs FTP the FTP protocol of a file transfer according...

Page 5: ...transmitting rate adjustable delay programming the collection of data events and action for events see Appendix B Programmable outputs for reaction at events and alarms Programmable inputs for analog...

Page 6: ...start the unit or make factory reset 11 Alarm indicator Alarm warns about an error registration by the analysis of received data 12 LED Indicator Power is lit on when power voltage present Figure 1 2...

Page 7: ...protection level IP20 Climatic version NC3 1 Permissible pollution density II Overvoltage category II Protection class against electrical shock II Rated insulation voltage V 450 Rated impulse withstan...

Page 8: ...ns you should use flexible stranded wires with insulation for voltage of not less than 450 V the ends of which it is necessary to be striped of insulation for 5 0 5 mm and tightened with bootlaces Rec...

Page 9: ...wave resistance of bus cable using the Table 5 1 5 1 3 3 If EM 486 should be connected to Internet via wire line to local network or directly to PC connect the Ethernet communication cable to the slot...

Page 10: ...to the unit all indicators light up except for Ethernet and GSM and the unit performs the initialization After this for 2 seconds the indicators except for indicator of power light down and the unit...

Page 11: ...s network via Modbus TCP interface EM 486 performs the function of Modbus gateway and waits for network connection via Modbus TCP protocol to port 502 The Modbus TCP connection port can be changed by...

Page 12: ...73 EXC 2 ILLEGAL DATA ADDRESS means that for the device 3 a register with address 873 is not executable for reading or is not available When there is no reply via RS 485 EM 486 can generate a specifie...

Page 13: ...l Set Description Access Address Changeable settings The parameters listed in Table 5 8 that can be changed and activated as described in Item 5 3 3 and 5 3 4 Only in mode of setting Reading or writin...

Page 14: ...K1 switch relay K1 to automatic control normal state before the events which are programmed for switching this relay until the next command on relay or until reset of the unit 42 Control of relay K2 s...

Page 15: ...ol of devices connected via RS 485 1 The connected client has an access on inquiry for functions of writing and control of devices connected via RS 485 Bit 4 0 The connected client can not get an acce...

Page 16: ...closed contacts For temperature gauges the measured value of temperature 32767 at gauge cut off 32768 at gauge short circuit 150 The effective value of input 1 state The gauge readings at the input 1...

Page 17: ...ual to 0 208 209 Year current time Current year 210 Month current time Current month 211 Day of the month current time Current day of the month 212 Hour current time Current hour 213 Minute current ti...

Page 18: ...y connection Type of hardware connection of the built in battery power battery for real time clock 0 the battery powers the clock in the central controller memory of statistics registers 270 299 5240...

Page 19: ...9999 this code is used for the SIM card if it demands the PIN code Other values the code isn t used SIM card and GSM are unavailable if the card demand a code 330 Switch on the automatic detection of...

Page 20: ...485 0 5 5 Is used for exchange with devices via RS 485 only if byte format selection is activated The value for devices on the same bus bar 0 even EVEN 1 parity bit and 1 stop bit 1 odd ODD 1 parity...

Page 21: ...2 After a loss of connection with server the next connection will be made after a specified stand by time after the device startup the first connection will be made after set time 5 sec 468 Enable th...

Page 22: ...parameters password 1 blocking of inquiries via SMS for function of reading 571 Enable the protection mode against writing via Modbus TCP 0 1 0 0 protection against writing is regulated with help of...

Page 23: ...ion value of sensor 1 0 1 0 0 Measured value is presented on the display console and at the status page of WEB interface 1 Adjusted value is presented on the display console and at the status page of...

Page 24: ...Annexation of a mea suring unit of adjustted value of sensor 3 24 24 0 Similar to 585 605 Measuring unit of effective value of sensor 3 for imaging Line of symbols Similar to 586 589 606 609 Type of s...

Page 25: ...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 0 Driving mode Master RS 485 is u...

Page 26: ...value exceeds counter is set to 0 653 654 Counter 1 maximum frequency 1 500 000 500 000 Used only is counter is switched on Square pulses maximum frequency on input For pulses of other form value sha...

Page 27: ...Automatic transition to daylight saving time Daylight saving time transition mode 0 200 12 0 automatic transition is not used the gain can be set manually when setting the clock 1 Brazil 6 Italy 11 Tu...

Page 28: ...minutes 0 59 43 714 Longitude seconds 0 59 40 715 Quadrant 0 3 0 0 N latitude E longitude 1 N latitude W longitude 2 S latitude E longitude 3 S latitude W longitude 716 The connection to the server o...

Page 29: ...To set the clock on the tab Time press Set button 8 Click Restore defaults to restore the default value of parameters 9 Click Reset to stop all connections and interrupt all receive transmit operation...

Page 30: ...It is not allowed to clean the unit with abrasive materials or organic compounds alcohol gasoline solvents etc 7 SERVICE LIFE AND WARRANTY Service life is 10 years Contact manufacturer upon the expir...

Page 31: ...ability of GPRS connection It is improved DHCP operation Added support of flags and inputs for MODBUS in task files 21 05 12 2016 Added the set of real time clock via MODBUS 22 18 01 2017 Enhanced inf...

Page 32: ...this case it is sufficient to connect the EM 486 to the network and after some time the obtained IP address is appeared on the display The address 0 0 0 0 means that the desired value has not been re...

Page 33: ...unit to the ISP cable is not recommended in case of a router connection the ISP cable is connected to the Uplink socket on the router It is usually marked with color and has no numbers The marking dep...

Page 34: ...ed and accumulate on the server this data can accumulate in the internal memory of the product when connection is failed and transmitted to the server when connection is restored As a server there can...

Page 35: ...S Files placed directly in the folder TASKS allow you to use MODBUS ID default in the text equal to MODBUS ID of the product EM 486 Files placed in subfolders in the folder TASKS with names from 1 to...

Page 36: ...int 32 bit signed integer uchar 8 bit unsigned integer ushort 16 bit unsigned integer Table C 2 Types of modifiers PROTOCOLVERSION int Version of the file It prevents the processing of files with out...

Page 37: ...s or arguments but with the same MODBUS ID are not permitted These lines being in different files in the folder of programs are also considered to be incorrect Arguments type uchar 8 bit unsigned inte...

Page 38: ...h reverse order of words and floating point 1000 Example PARAMS 0 3 UINT16 H 240 2 4 VARS Section It contains variables processing the parameters and other calculations e g the sum of the parameters T...

Page 39: ...at Vn where n is the index of the variable Table 6 Condition types IF cond ref Copy of the condition NOT cond ref Logical NOT The condition is satisfied when the referred condition did not happen and...

Page 40: ...ith the same number of alarm reason ALARMOFF alarm reason Turn off alarm LED RELAYON relay reason relay number Turn on the relay Hold the relay on up to the action of RELAYOFF with the same number of...

Page 41: ...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...

Page 42: ...resis is no less than 0 2 UINT16 H 5502 3 UINT16 H 5503 4 INT16 H 150 5 16 UINT16 H 47 VARS lower temperature limit 0 PARAMVAL P0 upper temperature limit 1 PARAMVAL P1 hysteresis for temperature below...

Page 43: ...g in mode of updating select the file of updating The procedure for file selection is resulted in table C 2 To cancel the updating cut off the power supply of EM 486 or wait until automatic completion...

Page 44: ...cess of firmware updating Similar to 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 Esca...

Reviews: