0% found this document useful (0 votes)
49 views88 pages

X2bacnet en

Uploaded by

Metzemog
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views88 pages

X2bacnet en

Uploaded by

Metzemog
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 88

Shanghai Sunfull Automation Co.

, LTD

X2BACnet
User Manual
Applicable Product model: BAC1001-ARM, BAC1002-ARM, BAC2004-ARM, BAC2004-A9

Shanghai Sunfull Automation Co., LTD

I
Shanghai Sunfull Automation Co., LTD

Table of Contents
1 Preface.......................................................................................................................................... 1

1.1 Disclaimer .................................................................................................................................... 1

1.2 Technical Support ....................................................................................................................... 1

1.3 Software Install and Uninstall ................................................................................................... 1

2 Overview ...................................................................................................................................... 2

2.1 Feature ......................................................................................................................................... 2

2.2 Operation Platform ..................................................................................................................... 3

2.3 Supported Registered Type and Number ............................................................................... 3

2.4 Application Fields........................................................................................................................ 5

3 Configuration And Operation ................................................................................................... 6

3.1 New Driver ................................................................................................................................... 7

3.2 New Channel ............................................................................................................................... 9

3.3 New Device ............................................................................................................................... 12

3.4 New Tag ..................................................................................................................................... 15

3.5 BACnet Server .......................................................................................................................... 25

3.5.1 BACnet IP Setting............................................................................................................. 25

3.5.2 BACnet MSTP Setting ..................................................................................................... 27

3.6 Upload the project(Remote Gateway Monitor Mode).......................................................... 30

3.7 Download the Project ............................................................................................................... 33

3.8 Local PC Monitor ...................................................................................................................... 34

4 WEB Server................................................................................................................................ 39

4.1 Download ................................................................................................................................... 40

4.2 Web Service .............................................................................................................................. 40

4.3 Ping option................................................................................................................................. 41

4.4 User Admin ................................................................................................................................ 41

4.5 Network ...................................................................................................................................... 42

4.6 Firmware .................................................................................................................................... 42

4.7 Memory ...................................................................................................................................... 43

II
Shanghai Sunfull Automation Co., LTD
4.8 Communication Traffic ............................................................................................................. 43

4.9 Real-time Data .......................................................................................................................... 44

5 JS Script Editor ......................................................................................................................... 45

5.1 Operation steps ........................................................................................................................ 45

5.2 Function description ................................................................................................................. 51

5.2.1 ReadFromTag ................................................................................................................... 51

5.2.2 WriteToTag ........................................................................................................................ 51

5.2.3 GetTagQuality ................................................................................................................... 51

5.2.4 MoveValue ......................................................................................................................... 51

5.2.5 GetTagBCD ....................................................................................................................... 53

5.2.6 GetTagBCDR .................................................................................................................... 53

5.3 Example ..................................................................................................................................... 56

6 BAC2004-ARM Hardware Parameter ..................................................................................... 58

6.1 Hardware Performance table .................................................................................................. 58

6.2 Electrical specifications and working environment table .................................................... 58

6.3 Network Interface ..................................................................................................................... 59

6.4 Power interface ......................................................................................................................... 60

6.5 RS485 interface parameters ................................................................................................... 61

7 BAC2004-A9 Hardware Parameter ......................................................................................... 62

7.1 Hardware Performance table .................................................................................................. 62

7.2 Electrical specifications and working environment table .................................................... 62

7.3 Network Interface ..................................................................................................................... 63

7.4 Power interface ......................................................................................................................... 64

7.5 RS485 interface parameters ................................................................................................... 65

8 BAC1002-ARM Hardware Parameter ..................................................................................... 66

8.1 Hardware Performance table .................................................................................................. 66

8.2 Electrical specifications and working environment table .................................................... 66

8.3 Network Interface ..................................................................................................................... 67

8.4 Power interface ......................................................................................................................... 68

III
Shanghai Sunfull Automation Co., LTD
8.5 RS485 interface parameters ................................................................................................... 69

9 BAC1001-ARM Hardware Parameter ..................................................................................... 70

9.1 Hardware Performance table .................................................................................................. 70

9.2 Electrical specifications and working environment table .................................................... 70

9.3 Network Interface ..................................................................................................................... 71

9.4 Power interface ......................................................................................................................... 72

9.5 RS485 interface parameters ................................................................................................... 73

10 BACnet client (master station) access ............................................................................... 74

10.1 BACnet IP ................................................................................................................................ 74

10.2 BACnet MS/TP ....................................................................................................................... 77

11 Frequently Asked Questions ................................................................................................ 79

11.1 Failed to login ‘http://192.168.1.88/login.html WEB server!”............................................ 79

11.2 Remember to the difference of “Upload” and “Download” .............................................. 79

11.3 Gateway to realize ModbusRTU to BACnet common problems ..................................... 79

12 CTL Test Certification ............................................................................................................ 82

IV
Shanghai Sunfull Automation Co., LTD

1 Preface
1.1 Disclaimer

This user manual belongs to Shanghai Sunfull Automation Technology Co., Ltd.

and authorized Licensor all rights, retain all rights. Without the company's written

permission, no unit and individual may unauthorized excerpt, copy the content of the

book part or all. The contents of this manual may be changed due to product version

upgrades or other reasons. This manual is used in conjunction with Sunfull hardware

gateway, and we do our best to provide accurate information in this manual.

1.2 Technical Support

 Email:[email protected]

 TEL:+86 021-58776098

 website:http://www.opcmaster.com/english/

http://www.bacnetchina.com/english/
1.3 Software Install and Uninstall

X2BACnet software is a green installation.


 No operation of the registry.

 Do not operate the sensitive area of the system, including the root directory of the system
starting area, the installation directory (Windows directory), the program directory (Program
Files), and the account specific directory.

 Do not write anything to the directory outside my directory.

Because the program itself does not have any effect on any file other than its directory,
there is no installation and unloading problem at all.

The deletion of the program, as long as the directory of the program and the corresponding
shortcut are deleted (if you manually set a shortcut on the desktop or other position), the
program is completely clean from your computer, without leaving any garbage.

 No need to install, copy and copy can be applicable.

1
Shanghai Sunfull Automation Co., LTD

2 Overview

2.1 Feature

 X2BACnet is a protocol gateway, X means different kind of communication

protocol, 2 is the harmonic representation. BACnet means support standard

BACnet IP/MSTP protocol. The software supports simulation test. This

allows the user to configure the communication protocol of the field device

to convert to the standard BACnetIP or BACnetMSTP protocol. After the

PC-side simulation runs correctly, upload it to the hardware protocol

translation gateway.

 Working principle: X2BACnet is a communication bridge, converting

different communication protocols into BACnet standard communication

protocols, so that host computer software that supports BACnetIP protocols

can communicate with different devices through hardware protocol

gateways to facilitate system integration.

 Advantages:

1. Easy to Configure and Operation.

2. Simple operation, stable and reliable, convenient fault diagnosis.

3. Support PC simulation with X2BACnet.

4. Support the User review data and communication status. And download

files and X2BACnet software from website.

5. Support more than 300 protocols transfer to BACnetIP/MSTP.

6. Gateway support analog linear transformation, support function, high

and low byte exchange function.

7. Support the user access management.

2
Shanghai Sunfull Automation Co., LTD

2.2 Operation Platform

 X2BACnet configuration software supports Windows XP/2000/2003/

Win7/Win8/Win10 and other operating systems.

 Supporting web browsers: Google Chrome,Mozilla Firefox,Microsoft

Edge,Opera,Safari and others.

2.3 Supported Registered Type and Number

The gateway internally supports BACnetIP server, the default port is 47808, and

can also support BACnetMSTP (BAC2004-ARM, BAC2004-A9 support;

BAC1002-ARM does not support), you need to set the relevant communication

parameters. The device ID is assigned by the user, so be careful not to conflict with

other device numbers in the same network segment.

Note that the following BAC2004-ARM, BAC2004-A9 abbreviated BAC2004, the

following BAC1002-ARM abbreviation BAC1002.

Examples of BACnet standard objects supported by BACnet Gateway are as

follows:
 AI: Analog Input
 AO: Analog Output
 AV: Analog Value, Set Points, Intermediate variables
 BI: Digital Input (Binary Input)
 BO: Digital Output (Binary Output)
 BV: Digital Value (Binary Value)
 MI: MULTI_STATE_INPUT
 MO: MULTI_STATE_OUTPUT
 MV: MULTI_STATE_VALUE
The types and number of registers supported by the gateway are shown in Table

2-3-1.

3
Shanghai Sunfull Automation Co., LTD

BAC2004-A9 BAC2004-ARM BAC1002 Remarks


BACnet
Register Address Register Address Register
Register Type
Range Range Address Range

AI (read only) 0-2047 0-1023 0-511

Written value
AO (read &
0-2047 0-1023 0-511 supports 16
write)
priorities

Written value
AV (read &
0-2047 0-1023 0-511 supports 16
write)
priorities

BI (read only) 0-2047 0-1023 0-511

Written value
BO (read &
0-2047 0-1023 0-511 supports 16
write)
priorities

Written value
BV (read &
0-2047 0-1023 0-511 supports 16
write)
priorities

MI (read only) 0-2047 0-1023 0-511

Written value
MO (read &
0-2047 0-1023 0-511 supports 16
write)
priorities

Written value
MV (read &
0-2047 0-1023 0-511 supports 16
write)
priorities

4
Shanghai Sunfull Automation Co., LTD
Note: The number of gateway BACnet registers is dynamically allocated. All

register types of BAC2004-A9 together support up to 2048 points, all register types of

BAC2004-ARM together support up to 1024 points, and all register types of BAC1002

together support up to 512 points.

2.4 Application Fields

Hardware gateway BAC2004(2 Ethernet port & 4 RS485 port) and

BAC1002-ARM(1 Ethernet port & 2 RS485 port) support different protocols convert

to BACnet protocol, can solve the problem that the large Building Automation

companies are unable to connect to some of the less common configuration

software control equipment. The non-standard protocol is converted into the BACnet

standard protocol through the hardware gateway, so that the BACnet client

configuration software can access the field device through the gateway.

5
Shanghai Sunfull Automation Co., LTD

3 Configuration and Operation

X2BACnet is a configuration software running on the PC. It used to

configure project, upload the project to the machine hardware gateway. Finally,

monitor by hardware gateway. Double click X2BACnet.exe( It is recommended to

run as an administrator), open the main interface, as the following figure 3-1.

Figure 3-1 Main interface

The simple operation is as follows.

New Driver New Channel New Device New Tag

Finally hardware
gateway Upload the
Start monitor and Debug the
monitoring Project to
project Until no problem.
gateway

if the project is modified

Figure 3-2 Simple operation flow

6
Shanghai Sunfull Automation Co., LTD

Select Monitoring Mode


Under the toolbar, you can select the monitoring mode, or double-click

"Monitoring Mode" in the bottom status bar to switch modes.

To use gateway monitoring, you need to switch the monitoring mode to

gateway mode. The X2BACnet software is configured and uploaded to the

hardware gateway to implement the protocol conversion function through the

hardware gateway. Clicking "Start Monitoring" on the X2BACnet software also

allows you to simultaneously monitor the communication status of the hardware

gateway.

Local mode is only used for data acquisition and debugging on the PC, no

forwarding function, and has a 30-minute limit.

Fig: Monitor Mode

3.1 New Driver


Click "Edit" of the menu bar to choose "New driver" or click on the toolbar

icon , open the "Driver Properties" window as the following figure 3-1-1.

7
Shanghai Sunfull Automation Co., LTD

Figure 3-1-1 New Driver

In the pop-up window, Choose driver “ModbusRTUClient”, As the below Figure 3-1-2。

Figure 3-1-2 choose Driver

Input driver name in the name of the project, the default Scan Rate is 1000

milliseconds. Scan Rate can adjust the frequency of access to all devices. If the time

required to access all the devices is greater than the set scan rate, this time is invalid.

if the time required to access all the devices is less than the set scan rate, the

waiting time needs to reach the set scan rate for the next visit. user can according to

the actual situation, change the scan rate.

After finish adding driver, as the below figure 3-1-3.

8
Shanghai Sunfull Automation Co., LTD

Figure 3-1-3 Finish adding driver

3.2 New Channel

In the current driver, right click to select "New Channel" or click on the toolbar

, As the following figure 3-2-1.

Figure 3-2-1 New Channel

In the pop-up window, according to corresponding set by the driver

communication protocol channel names can be arbitrary naming, As the following

figure 3-2-2.

9
Shanghai Sunfull Automation Co., LTD

Figure 3-2-2 Set communication parameters

Since the acquisition terminal is intended to collect data from Modbus slave

stations, so the setting of the serial communication parameters should be consistent

with the parameters in Modbus Slave.

When the communication is stable, response timeout set longer does not affect

communication speed. If the response speed of the device is relatively slow, it is

recommended to set up a bit longer to avoid communication failure, As the following

figure 3-2-3.

10
Shanghai Sunfull Automation Co., LTD

Figure 3-2-3 Channel parameters comparison

Note: The serial port communication parameters must be consistent with the

communication parameters of the data acquisition terminal.

11
Shanghai Sunfull Automation Co., LTD
After finish adding the channel, As the following figure 3-2-4.

Figure 3-2-4 finish adding Channel

3.3 New Device

In the current Channel, Right-click to choose "New Device", or click on the

toolbar , As the following figure 3-3-1.

Figure 3-3-1 New Device

12
Shanghai Sunfull Automation Co., LTD
In the pop-up window set device properties, As the following figure 3-3-2.

Figure 3-3-2 Device Properties

In order to improve the communication speed, the packet register

communication can be realized under the continuous register address. When the

device does not support packet communication, the parameters of the group

package should be set to 0. In addition, when the response time of the device is slow,

you can set the time interval between the data frame and the frame (that is Delay

Between Polls). The default of Delay Between Polls is 100 microseconds. As the

following figure 3-3-3.

2 Bytes Integer Order, 4Bytes Integer Order, and 4 Bytes Float Order means the

combination of integer or floating-point byte order, the default is 4321. These

parameters are used in combination with field devices for data transmission. For

example, some meters adjust the sequence of high and low byte in the transmission

of data, which will be used at this time. The default parameters are generally used,

As the following figure 3-3-3.

13
Shanghai Sunfull Automation Co., LTD

Figure 3-3-3 Byte order

After finish adding the device, As the following figure 3-3-4.

Figure 3-3-4 finish adding device

14
Shanghai Sunfull Automation Co., LTD

3.4 New Tag

In the current Channel, Right-click to choose directly add tag (also add group

first, and then new tag in the group), or click on the toolbar , As the following
figure 3-4-1.

Figure 3-4-1 New Tag

Or right-click on the right side of the edit box blank space, add a new tag. As the

following figure 3-4-2.

Figure 3-4-2 New Tag

15
Shanghai Sunfull Automation Co., LTD
In the pop-up window, Set the parameters of collection and transfer(BACnet

Server), As the following figure 3-4-3.

Figure 3-4-3 Tag Properties

In the tag properties pop-up window, fill in the Name, Description, Data type,

register, Register Type, Register address etc.

When the data type is Short, Word, Long or DWord, can be valued by byte data

bits. Click “Mask Value”, you can select a byte 0-15. As the following figure 3-4-4.

16
Shanghai Sunfull Automation Co., LTD

Figure 3-4-4 Mask Value

For some special data, we can also enable the linear transformation function to

realize the linear amplification and reduction of data. Note that the initial address of

the BACnet server's address is from 0. As above figure, the value of the Modbus

register is collected and stored in the AV0 address of the BACnet server.

The supported type of registers are 0X, 1X, 3X, 4X. For the 0X and 4X register

types, 0X (Coil Status) -F5 and 4X (Holding Register) -F6 are generally chosen by

default. A write function code Behind the bar line.

Click “Scale”, You can do the linear transformation, and two minimum value is

invalid, you just need to set a maximum. To expand 100 times, Raw Data is set to 1,

Engineer Date can be set to 100. As the following figure 3-4-5.

17
Shanghai Sunfull Automation Co., LTD

Figure 3-4-5 Tag Process Settings

18
Shanghai Sunfull Automation Co., LTD

Table: The types and number of registers supported by the gateway

Serial
Register Type Description Remark

Number

1 0X(Coil Status)-F5 Digital quantity, support read and Written value 05 function code

write (0/1)

2 0X(Coil Status)-F15 Digital quantity, support read and Written value 15 function code

write (0/1)

3 1X(Coil Status) Digital quantity, support read only

(0/1)

4 3X(Input Register) Analog quantity, read only

5 4X(Holding Register)-F6 Analog quantity, support read and Written value 06 function code

write

6 4X(Holding Register)-F5 Analog quantity, support read and Written value 06 function code

write

7 4X(Holding Register)-F16 Analog quantity, support read and Written value 16 function code

write

19
Shanghai Sunfull Automation Co., LTD

After finish adding a tag, As the following figure 3-4-6.

Figure 3-4-6 finish adding a tag

If it is associated with BI, BO, BV, MSI, MSO, MSV and other objects, you can

edit the status text according to your needs, if it is associated with AI, AO, AV and

other objects, you can also choose the numerical unit and COV change accuracy

according to the requirements, of which the AV object also supports the trendlog

storage function and sets the BACnet alarm function, as shown in Figure 3-4-7,

Figure 3-4-8

20
Shanghai Sunfull Automation Co., LTD

Figure 3-4-7 AV object special properties

Figure 3-4-8 BACnet Alarm properties

21
Shanghai Sunfull Automation Co., LTD

Now you can continue to add steps one by one, and suggest using the copy and

paste of the toolbar. Select a tag to copy, click the copy button in the toolbar, or

choose the copy on the right button, or use shortcut key Ctr+C and Ctrl+V, as the

following figure 3-4-9.

Figure 3-4-9 Copy Tag

It can also be edited in the EXCEL table. Right-click the device to choose “Export

Excel”, As the figure 3-4-10. Save as xls file.

Figure 3-4-10 Export EXCEL

22
Shanghai Sunfull Automation Co., LTD
Save the completed, open the EXCEL for editing, As the figure 3-4-11.

Figure 3-4-11 Open the EXCEL

After editing the Excel file, As the figure 3-4-12.

Figure 3-4-12 Edit the EXCEL

23
Shanghai Sunfull Automation Co., LTD
Back to X2BACnet interface, Right-click the device to choose “Import Excel”,

find the edited Excel file to import. As the following figure 3-4-13.

Figure 3-4-13 Import EXCEL

The import is complete, the following figure 3-4-12.

Figure 3-4-12 Complete the import

24
Shanghai Sunfull Automation Co., LTD

3.5 BACnet Server

3.5.1 BACnet IP Setting

BACnet server support BACnet IP protocol and BACnet MSTP protocol. Click

on the menu bar "BACnet Server" option "BACnet IP Setting",As the following figure

3-5-1-1.

Figure 3-5-1-1 BACnet IP Setting

Set the BACnet device ID in the pop-up dialog box, the port number is fixed to

47808, and pay attention to the device ID not to duplicate other BACnet device

numbers in the same network segment, otherwise it will cause communication

failures. When there are more gateway points, users can choose whether to enable

the COV subscription function according to the response speed of actual needs.

In addition, the gateway can be named so that the gateway with different

addresses can be quickly distinguished in the host computer system, as shown in

Figure 3-5-1-2.

25
Shanghai Sunfull Automation Co., LTD

Figure 3-5-1-2 BACnetIP Server Setting

Note: To BACnet IP, if the host computer is Siemens Insight, the device ID is

recommended to be set to 7000~7999. If you set the AV register point alarm

property of BACnet, you can set the IP address and port number of the alarm

receiver, and the gateway setting is as follows: 3-7-3.

BBMD: If the gateway and the BA host computer are not in the same network

segment, the BBMD function needs to be enabled. This function requires both

parties to set each other's IP addresses.

26
Shanghai Sunfull Automation Co., LTD

Figure 3-5-1-3 BACnet BBMD settings

3.5.2 BACnet MSTP Setting

Click on the menu bar "BACnet server" option "BACnet MSTP Setting", As the

following figure 3-5-2-1.

27
Shanghai Sunfull Automation Co., LTD
Figure 3-5-2-1 BACnetMSTP Server Setting

In the pop-up dialog, select “Enable MSTP Slave”, set the DeviceID and MAC

address (the device ID and Mac address are as consistent as possible), the serial

channel, the baud rate and other parameters of the BACnet slave device. The

gateway can also be named, so that the different gateways can be distinguished in

the upper computer configuration, and the device ID in the BACnetMSTP server and

the device ID in the BACnetIP server are shared. The specific setting is as shown in

figure 3-5-2-2. It is suggested that the COM1 port be used as the BACnetMSTP

communication port.

Figure 3-5-2-2 BACnet MSTP Server Setting

3.5.3 Select the BACnet Characters Encoding

The gateway supports different character encodings of each BA manufacturer,

the host computer Siemens Insight and Delta Orca use MBCS code, the EBI uses

USC-2 code, and the Johnson Metasys and Niagara platforms use UTF-8 codes,

when the users apply the sequence call in the gateway, the application status and

description, different character sets can be selected according to the host computer

platform.

28
Shanghai Sunfull Automation Co., LTD

Figure 3-5-2-3 BACnet Character Encoding

3.5.4 BACnet Router Setting

Click "BACnet Server" in the menu bar to select "BACnet Routing Settings", and

click BACnet Router1 to configure the route, as shown in Figure 3-5-2-4

Figure 3-5-2-4 BACnet Router Setting

29
Shanghai Sunfull Automation Co., LTD
3.6 BACnet Monitor Mode

After the project configuration is complete, click "Tools" in the menu bar to select

the monitor mode.

Figure 3-6-1 BACnet Interface Monitor Mode

3.7 Upload the project (Remote Gateway Monitor Mode)

Before uploading project, we must ensure that the monitoring mode is Remote
Gateway mode, and the specific mode switching operation is as follows.
 on the menu bar, monitor mode under the tool need to be chosen “Remote Gateway”.

 Double click the “Monitor Mode” of the status bar at the bottom of the software can also
switch monitoring mode.

After Configuring the project, the project can be uploaded to the hardware
gateways to debug by starting monitor.

If the project is modified, it is necessary to upload the project to the gateway for
debugging until there is no problem, finally monitor by hardware gateway.

Click "Gateway" on the menu bar to choose "Upload " or click on the toolbar

to upload the project,As the Figure 3-7-1.

30
Shanghai Sunfull Automation Co., LTD

Figure 3-7-1 Upload the project

In the pop-up dialog box enter the gateway IP address, click the "Upload",As
the Figure 3-7-2.

Figure 3-7-2 Upload

After uploading, the pop-up dialog prompt succeeds to upload, As the Figure
3-7-3.

If uploading is failed, it will also pop up the failure prompt box.

31
Shanghai Sunfull Automation Co., LTD

Figure 3-7-3 Succeed to upload

Note: the IP address of the gateway must be correct.

the default gateway IP address is 192.168.1.88, the IP address of PC to set up to

the same network segment, the project can be uploaded after successfully Ping.

After uploading the project, click the menu bar "Tools" to select "Start Monitor" or

click the toolbar icon ,you can see real time data on the device. As the Figure 3-6-4,

The collected data is consistent with the slave simulated data.

Figure 3-7-4 Remote gateway monitor

32
Shanghai Sunfull Automation Co., LTD
3.8 Download the Project

Before uploading project, we must ensure that the monitoring mode is Remote
Gateway mode, and the specific mode switching operation is as follows.
 on the menu bar, monitor mode under the tool need to be chosen “Remote Gateway”.

 Double click the “Monitor Mode” of the status bar at the bottom of the software can also
switch monitoring mode.

Download project is to download the last configuration project from the

hardware gateway to PC, and edit the project and view real-time data on the PC to

facilitate user debugging. Click on the "Gateway" choose "Download ", user name:

admin, password: admin123456. As the Figure 3-8-1.

Figure 3-8-1 Download Project

In the pop-up dialog box enter the gateway IP address, can be downloaded

from the gateway of the current project,as the Figure 3-8-2.

33
Shanghai Sunfull Automation Co., LTD

Figure 3-8-2 Download Project

Users can also through the WEB server log in to the gateway, download the project.

3.9 Local PC Monitor

After completing the project configuration, click the menu bar "Tools" to select

"Start Monitor" or click the toolbar icon , as shown in figure 3-9-1 below. It will start

the X2BACnetRunTime.exe program. User only need to start the program in the

background to realize the function of gateway conversion on PC.

Figure 3-9-1 Start Monitor

X2BACnetRunTime run successfully. We can view the running log. As the Figure

3-9-2.

34
Shanghai Sunfull Automation Co., LTD

Figure 3-9-2 Log

Return procedure monitoring interface, can see some real time data on the

device and the data on the interface is consistent, As the Figure 3-9-3.

Figure 3-9-3 Successful Communication

3.10 Gateway Parameter Settings

In gateway monitoring mode, click "Gateway" in the menu bar and select

"Parameter Settings", as shown in Figure

35
Shanghai Sunfull Automation Co., LTD

Figure 3-10-1 Gateway Parameter Settings

Ethernet Setting: You can change the IP address of the hardware gateway, the

default IP address of the gateway is 192.168.1.88, the subnet mask is

255.255.255.0, the default gateway is 192.168.1.1, click OK after the setting is

complete. The "Ping" function tests whether the ping of the current IP address is

successful. The "Login Web Page Function" can be logged in to the web server

where the gateway is located, as shown in Figure.

36
Shanghai Sunfull Automation Co., LTD

Figure 3-10-2 Network Port Settings

Time: Can read the current system time of the hardware gateway, if the time

does not match the normal time, you can click the "Load" function to refresh the

hardware gateway system time, the automatic update cycle refers to the cycle

interval between the system time of the hardware gateway to the underlying end

device, as shown in Figure

Figure 3-10-2 System Time

37
Shanghai Sunfull Automation Co., LTD
Firmware: You can view the firmware information burned into the hardware

gateway, as shown in Figure

Figure 3-10-3 Firmware

System: 1. View the system memory usage (this function automatically

refreshes the gateway memory information every 5s). 2. Restart the gateway

remotely. 3. Delete the configuration project (delete the current gateway

configuration project). 4. Backup the configuration project (you can back up the

current project to the isolation area). 5. Restore the configuration project (restore the

project that the user has backed up). Projects can be backed up to quarantine areas,

and first, when the wrong project is uploaded by mistake, it can be quickly restored.

The second is to facilitate debugging, the user does a good job of point table, after

backing up the project, encountering modifications, you can also quickly restore.

This is shown in Figure

38
Shanghai Sunfull Automation Co., LTD

Figure 3-10-4 System Interface

The above functions can also be accessed via the web server and set on the

web page.

39
Shanghai Sunfull Automation Co., LTD

4 WEB Server
BACnet Gateway with a WEB server, the default port is fixed at 80. Users can

login to the WEB server through the browser, in a WEB page can modify hardware

gateway IP address, serial interface communication mode, view real-time data,

download X2BACnet PC configuration software and project etc.

Note: The hardware gateway is authorized at the factory. The X2BACnet

configuration software is used to configure the project and provides 30 minutes of

local simulation monitoring for debugging. After the project is configured, it is

uploaded to the gateway and monitored through the hardware gateway.

Note: the factory default gateway IP address is 192.168.1.88, the user to

change the IP address for the first time, users only need to direct connect a network

cable and the gateway. Need to set the PC and gateway to the same network

segment, and then in the browser input 192.168.1.88 complete gateway IP address

modification.

Web Login

After connecting Gateway and PC to the same network, enter the gateway default IP

address to the browser.

In the pop-up window enter the user name and password to login, As the Figure 4-1.

Username: admin

Password: admin123456

40
Shanghai Sunfull Automation Co., LTD

Figure 4-1 Login

4.1 Download the File

Click “Download”, you can download the following files, As the Figure 4-1-1.

Figure 4-1-1 Download

X2BACnet: Configuration Software

BACnet SCAN: the tool of Scanning BACnet device

Project Files: the last configuration project that Upload to gateway

41
Shanghai Sunfull Automation Co., LTD

4.2 Web Service

Figure 4-2-1 Web Service

OPC XML-Data Access (OPC XML-DA): It is the OPC Foundation's adoption of


the XML set of technologies to facilitate the exchange of plant data across the
internet, and upwards into the enterprise domain.

4.3 Ping Option

Figure 4-3-1 Web Service

42
Shanghai Sunfull Automation Co., LTD

4.4 User Admin

Users can manage their application accounts by adding, modifying, deleting,

and so on, as shown in figure 4-4-1 below.

Figure 4-4-1 User Admin

4.5 Network

Click “Network” to check gateway IP address, as shown in figure 4-5-1 below.


 Ethernet 1: 172.24.13.88

 Ethernet 2: 192.168.1.88(Communication port)/ Default

Figure 4-5-1 Network

43
Shanghai Sunfull Automation Co., LTD

4.6 Firmware

In this page, user can view the firmware version information, machine code and

license key.

Figure 4-6-1 Firmware

4.7 Memory

Figure 4-7-1 Memory

1. check the system memory usage. (This function automatically refreshes the

gateway memory information every 5sec).

44
Shanghai Sunfull Automation Co., LTD
2. Restart Gateway (remote restart the current gateway).

3. Delete Project File (delete the current gateway configuration project).

4. Backup Project File (can back up the current project to the remote area).

5. Restore Project File (restore a project that has been backed up by the user).

The project can be backed up to the remote area, which has 2 advantages.

First, it prevents the wrong operation from uploading the wrong project and can

be quickly restored.

Two, it is easy to debug. Once the project is modified, it can be quickly restored.

4.8 Communication Traffic

In addition, the real-time dynamic data frame can be viewed in the web page to

facilitate the user to understand the real-time communication state intuitively.

Through the analysis of the data frame, the cause of the failure can be found, which

brings great convenience to the user.

Figure 4-8-1 Communication Traffic

45
Shanghai Sunfull Automation Co., LTD

4.9 Real-time Data

Check the equipment real-time data on the web, as the Figure 4-9-1.

Figure 4-9-1 Real-time data

BACnet gateway also has JS script editor. Users can implement some logic
controls by editing script language. Script Editor built in some common functions.
The user can select some functions to edit the language. After editing is completed,
click "Syntax Check", and the syntax will be checked automatically. If there is any
errors, it will be indicated which specific line have problems.

5.1 Operation steps

Click the menu bar view to select the JS script editor, or click the toolbar to open the script editor,

as shown in figure 5-1-1.

46
Shanghai Sunfull Automation Co., LTD
5 JS Script Editor

Figure 5-1-1 Open JS Script editor

Right click on the script editor to choose “New JS Script”, as shown in figure
5-1-2.

Figure 5-1-2 New JS Script

47
Shanghai Sunfull Automation Co., LTD

Open to see JS editing script, as shown in figure 5-1-3 below.

Figure 5-1-3 JS Script Editor

1. Function

Users can choose different functions to implement logical functions.

Figure 5-1-4 select Function

2. Internal Tag

Users can use the " Internal Tag" function to build a new variable and related
functions and to receive or store variable data, such as taking the current value of

48
Shanghai Sunfull Automation Co., LTD
Tag, and mapping it to a new internal variable. In the script editor, click the "Internal
Tag", or in the X2BACnet menu bar click “view” to select “Internal Tag”, open the
window of Internal tag list. In the pop-up window, right click “New”, as shown in
figure 5-1-5.

Figure 5-1-5 New Internal tag

Note: in the above figure, there is an internal variable BI point that address is 7,
which represents the communication state of the Device. at least one point is
communicated normally under the device, the value of the internal variable is 1, if all
the points under the device are not normal (that is, the device is off-line), this internal
change of the value of the quantity is 0. If there is currently N devices, it will
automatically generate N internal variables. Users should avoid duplication of register
addresses when configuring the project.

In the pop-up window, set the variable related properties. If you want to quickly
view the current value of the internal variable, you can click the menu bar "view"
option and select the "internal variable" to see the real time data in the pop-up
window, as shown in figure 5-1-6.

49
Shanghai Sunfull Automation Co., LTD

Figure 5-1-6 Open Internal tag to check real-time data

Click on the internal variable, as shown in figure 5-1-7.

Figure 5-1-7 real-time data

3. External Tag

In addition, users can also use relevant functions for logical control according to

50
Shanghai Sunfull Automation Co., LTD
the changes in the data of external variables, such as different logical controls based
on the range of numerical changes of an external variable. In the script editor, click
"external tag", and double-click on a variable in the expanded variable table, as
shown in figure 5-1-8.

Figure 5-1-8 select the external tag

4. Syntax check

After completing the programming, users can check the syntax errors with the
syntax check function and prompt if there is a problem with the program.

5. Execution Type

 Execution type cycle: cycle (MS)1000, which represents a script execution every
1000ms.

 Execution type change: Roll call needed to input. The following figure 5-1-9,
which assigns the value of internal variable VarName_1 to the return Tag_1 and
Tag, The initial value of the internal variable VarName_1 can be assigned to
batch names.

51
Shanghai Sunfull Automation Co., LTD

Figure 5-1-9 change script

Note:

 In order to prevent the mistake, you can point out external variables, or internal
variables in the script input box, double click to select a name and then copy it from the
script input box to the top name box.

 Only when the value of internal variable VarName_1 change, can script be executed to
save resources.

 Execution type time selection: select a time point, after the arrival of this time, the
implementation of the script. It can be applied to the timing switchgear.

Figure 5-1-10 timing switchgear

52
Shanghai Sunfull Automation Co., LTD

5.2 Function Description

The common functions built into the JS Script Editor are described below:

Operating Function

5.2.1 ReadFromTag

ReadFromTag is a function that takes values from a Tag.

Syntax:

Var szValue = ReadFromTag ("ModbusRTU.Channel_1.Device_1.tag_1");

5.2.2 WriteToTag

It is a write value to a Tag function, used to assign an external variable to a Tag, to


perform a write operation on the device, or to assign a new internal variable to the
user.

Syntax:

var szValue = 100;

WriteToTag('ModbusRTU.Channel_1.Device_1.tag_1',0); //write the value to the


‘tag_1’

5.2.3 GetTagQuality

It is a quality stamp from Tag.

The results returned conformed to the OPC specification. That is, Good returns 192,
Bad returns 0, Uncertain returns 64, indicating that the value is not assigned and has
not been updated.

Var varQuality = GetTagQuality ('szTagName'); //where 'szTagName' is selected


from external variables.

5.2.4 MoveValue

It is implementing the transfer of source data to destination data and data transfer
between different points.

53
Shanghai Sunfull Automation Co., LTD
Syntax:

MoveValue ('Source Tag Name', 'Destination Tag Name'); //Source Tag Name is the
name of the source data point, and Destination Tag is the destination data name.
The parameters here can be either external variables or internal variables.
MoveValue function application scenario:

(1) the gateway collection side can access and control each other (no matter
what protocol can be interchanged).

Gateway acquisition gateway uses two COM ports to collect different


ModbusRTU slave devices, one for collecting temperature points of air conditioning
equipment, and one for collecting IO modules. According to the temperature of the
air conditioner, the IO module is controlled by the output of a sound and light alarm,
that is, the MoveValue function can be used for logical editing, and the data of two
acquisition terminals are accessed and controlled by each other.

(2) use one internal variable point to control all external variables.

MoveValue ('internal variable', 'external variable 1' ');

MoveValue ('internal variable', 'external variable 2' ');

MoveValue ('internal variable', 'external variable 3' ');

MoveValue ('internal variable', 'external variable 4' ');

MoveValue ('internal variable', 'external variable n' ');

54
Shanghai Sunfull Automation Co., LTD
This is the realization that when the internal variables change, the external

variable 1-N can change at the same time.

Figure 5-1-11 MoveValue

For example, if you change the temperature on the interface, the setting
temperature of the N thermostat of the gateway will be changed together.

5.2.5 GetTagBCD

It is used to get the BCD code of a label.

Syntax:

Var mBCD = GetTagBCD ('szTagName');

If the single register (Word, Short) value is 4660 (0x1234), the GetTagBCDR
function is used to get BCD data to be decimal number 1234.

If the double register (Dword, Long) value is 305419896 (0x12345678), the


GetTagBCDR function is used to get BCD data to be decimal number 12345678.

5.2.6 GetTagBCDR

It is used to get the BCD code of a tag, but the value is BCD code with high and low
inversion.

55
Shanghai Sunfull Automation Co., LTD

Syntax:

Var mBCDR = GetTagBCDR ('szTagName');

figure 5-2-6-1 Get BCDR

If the single register (Word, Short) value is 4660 (0x1234), the GetTagBCDR
function is used to get BCD data to be decimal number 3412.

If the double register (Dword, Long) value is 305419896 (0x12345678), the


GetTagBCDR function is used to get BCD data to be decimal number 56781234.

For an example:

If you need to get the BCD code of'Simulator.Channel_1.Device_1.Tag_1', assign it


to T1. Get the'Simulator.Channel_1.Device_1.Tag_2'inverse BCD code and assign it
to T2. The code is shown as shown in figure 5-2-6-2.

56
Shanghai Sunfull Automation Co., LTD

figure 5-2-6-2 Get BCD


Start monitor later, in the Internal tag list value display is as the figure 5-2-6-3.

figure 5-2-6-3 check BCD value

System function

The output string of alert () function is mainly used for debugging. The results
returned are displayed on the log of Runtime.exe. It can also be displayed on the
state of the web communication.

57
Shanghai Sunfull Automation Co., LTD
Syntax:

For example, the return value of the output mass stamp

Alert (varQuality.toString ());

The Sleep (1000) function is used for delay, indicating a delay of 1 seconds. Unit
milliseconds.

5.3 Example

Open the script editor to reduce the current value of Tag "
Simulator.Channel_1.Device_1.Tag_1" by 20 times and map it to the internal
variable T1.

var szValue=ReadFromTag('Simulator.Channel_1.Device_1.Tag_1');

var newValue=Number(szValue);//String strongly transformed integer

newValue=newValue*0.5;

WriteToTag("T3",newValue.toString());

The script editor supports all mathematical calculations, such as taking random
numbers between 0-255.

Examples are as follows:

Var Rand = Math.round (Math.random () * 255);

Alert (rand.toString ());

Note: Execute Type represents how long the execution of a script!

58
Shanghai Sunfull Automation Co., LTD

Figure 5-3-1 script example

View the T1 real-time data under the internal variables in the View menu bar. As
shown in figure 5-3-2.

Figure 5-3-1 reduced by times

59
Shanghai Sunfull Automation Co., LTD

6 BAC2004-ARM Hardware Gateway Parameters


BAC2004-ARM The hardware gateway parameters of the are as follows:

6.1 Hardware Performance Table

The hardware performance is shown in table 6-1-1.

CPU 4 Core 1.4GHz

Memory 512M High Performance Memory

Storage 8GB Flash

Operating System Linux

2 High-performance 100M/10M adaptive


Ethernet
Industrial Network Card, support auto MDI/MDIX

Power supply socket Standard 5.08mm spacing 3PIN connector


i t f
Internal integrated real-time clock, on-board 1
RTC Clock
CR2032 batteries (can be used for 3 years)
board carries 1 buzzer, which can be used for
Buzzer
alarm or prompting sound
2*Full Isolution RS485, 2* RS485/RS232
Serial communication port
(Alternative)

Table 6-1-1 hardware performance table

6.2 Electrical specifications and working environment table

Electrical specifications and working environment are shown in table 6-2-1.

Rated power 8W

AC and DC rated voltage 24V, working range 12V


Rated voltage
to 24V.
adopts isolated power module, with lightning surge
Power Protection
protection

Allowable loss of
< 5 ms
power

60
Shanghai Sunfull Automation Co., LTD
conforms to EN61000-6-2:2005,
EN61000-6-4:2007 standard, and meets ROHS
CE & ROHS
Lightning surge + 4KV, group pulse + 4KV,
electrostatic contact 4K, air discharge 8K

Working Temperature -20~70℃

Storage temperature -40~85℃

relative humidity in
20%~90% non-condensation
working
relative humidity in
15%~95% non-condensation
storage and

Shock resistance 10 ~ 25 Hz (X、Y、Z direction 2G/30 minutes)

Cooling mode natural air cooling

The front panel is in line with IP65 (fitted with flat


panel cabinets) and the rear body of the fuselage is
Protection grade
IP20.
48 hour salt spray test for the whole machine

Mechanical Use of aluminum alloy shell, surface coating


mechanism treatment

Whole machine size 147mmx95mmx35mm (L*W*H)

Whole machine weight 450g

Table 6-2 electrical specifications and working environment table

6.3 Network Interface

Label 1 and 2 in the physical map are Ethernet 1 and 2 respectively. Standard
RJ45 interface, 10M/100M adaptive, support AUTO MDI/MDIX.

Ethernet 1: Default IP address is 172.24.13.88,

Ethernet 2: Default IP address is 192.168.1.88.

IP can be changed, easy to connect communication. Long press the Reset key,
restore the Ethernet 2 to the factory default IP.

61
Shanghai Sunfull Automation Co., LTD
The concrete interface of the gateway is illustrated as shown in Figure 6-3-1.

Figure 6-3-1 Schematic diagram of Gateway Interface

6.4 Power Interface

The standard 3PIN 5.08mm spacing connector is used in this interface and the
input pin definition is shown in table 6-4-1.

PIN foot Port Illustrate Remarks


No

1 Shell ground wire Connect the earth

2 V- Power ground wire Power input negative


of this machine pole

3 V+ Positive Power Power input positive


Supply pole

Table 6-4-1 Power interface parameters

62
Shanghai Sunfull Automation Co., LTD
Power input supports AC / DC 12V to 24V wide voltage input, supports
overcurrent and lightning protection, and supports reverse connection protection.

6.5 RS485 interface parameters

The standard 14PIN 5.08mm spacing connector is used in the interface. The
definition of the foot table is shown in table 6-5-3.

PIN foot No Port Illustrate Remarks

1 A1 Fully electrically
isolated RS485
RS485 (COM1)
2 B1 interface, isolation
voltage up to 2000V

3 A2 Fully electrically
isolated RS485
RS485 (COM2)
4 B2 interface, isolation
voltage up to 2000V

5 A3/TX Fully electrically


isolated
RS485/RS232
6 B3/RX RS485/RS232
(COM3)
interface, isolation
7 GND
voltage up to 2000V

8 A4/TX Fully electrically


isolated
RS485/RS232
9 B4/RX RS485/RS232
(COM4)
interface, isolation
10 GND
voltage up to 2000V

Table 6-5-3 RS485 interface parameters

63
Shanghai Sunfull Automation Co., LTD
7 BAC2004-A9 Hardware Gateway Parameters
BAC2004-A9 The hardware gateway parameters of the are as follows:

7.1 Hardware Performance Table

The hardware performance is shown in table 7-1-1.

CPU 4 Core 1.4GHz

Memory 512M High Performance Memory

Storage 8GB Flash

Operating System Linux

2 High-performance 100M/10M adaptive


Ethernet
Industrial Network Card, support auto MDI/MDIX

Power supply socket Standard 5.08mm spacing 3PIN connector


i t f
Internal integrated real-time clock, on-board 1
RTC Clock
CR2032 batteries (can be used for 3 years)
board carries 1 buzzer, which can be used for
Buzzer
alarm or prompting sound
2*Full Isolution RS485, 2* RS485/RS232
Serial communication port
(Alternative)

Table 7-1-1 hardware performance table

7.2 Electrical specifications and working environment table

Electrical specifications and working environment are shown in table 7-2-1.

Rated power 8W

AC and DC rated voltage 24V, working range 12V


Rated voltage
to 24V.
adopts isolated power module, with lightning surge
Power Protection
protection

Allowable loss of
< 5 ms
power

64
Shanghai Sunfull Automation Co., LTD
conforms to EN61000-6-2:2005,
EN61000-6-4:2007 standard, and meets ROHS
CE & ROHS
Lightning surge + 4KV, group pulse + 4KV,
electrostatic contact 4K, air discharge 8K

Working Temperature -20~70℃

Storage temperature -40~85℃

relative humidity in
20%~90% non-condensation
working
relative humidity in
15%~95% non-condensation
storage and

Shock resistance 10 ~ 25 Hz (X、Y、Z direction 2G/30 minutes)

Cooling mode natural air cooling

The front panel is in line with IP65 (fitted with flat


panel cabinets) and the rear body of the fuselage is
Protection grade
IP20.
48-hour salt spray test for the whole machine

Mechanical Use of aluminum alloy shell, surface coating


mechanism treatment

Whole machine size 147mmx95mmx35mm (L*W*H)

Whole machine weight 450g

Table 7-2-1 electrical specifications and working environment table

7.3 Network Interface

Label 1 and 2 in the physical map are Ethernet 1 and 2 respectively. Standard
RJ45 interface, 10M/100M adaptive, support AUTO MDI/MDIX.

Ethernet 1: Default IP address is 172.24.13.88,

Ethernet 2: Default IP address is 192.168.1.88.

IP can be changed, easy to connect communication. Long press the Reset key,
restore the Ethernet 2 to the factory default IP.

65
Shanghai Sunfull Automation Co., LTD
The concrete interface of the gateway is illustrated as shown in Figure 7-3-1.

Figure 7-3-1 Schematic diagram of Gateway Interface

7.4 Power Interface

The standard 3PIN 5.08mm spacing connector is used in this interface and the
input pin definition is shown in table 7-4-1.

PIN foot Port Illustrate Remarks


No

1 Shell ground wire Connect the earth

2 V- Power ground wire Power input negative


of this machine pole

3 V+ Positive Power Power input positive


Supply pole

Table 7-4-1 Power interface parameters

66
Shanghai Sunfull Automation Co., LTD
Power input supports AC / DC 12V to 24V wide voltage input, supports
overcurrent and lightning protection, and supports reverse connection protection.

7.5 RS485 interface parameters

The standard 14PIN 5.08mm spacing connector is used in the interface. The
definition of the foot table is shown in table 7-5-3.

PIN foot No Port Illustrate Remarks

1 A1 Fully electrically
isolated RS485
RS485 (COM1)
2 B1 interface, isolation
voltage up to 2000V

3 A2 Fully electrically
isolated RS485
RS485 (COM2)
4 B2 interface, isolation
voltage up to 2000V

5 A3/TX Fully electrically


isolated
RS485/RS232
6 B3/RX RS485/RS232
(COM3)
interface, isolation
7 GND
voltage up to 2000V

8 A4/TX Fully electrically


isolated
RS485/RS232
9 B4/RX RS485/RS232
(COM4)
interface, isolation
10 GND
voltage up to 2000V

Table 7-5-3 RS485 interface parameters

67
Shanghai Sunfull Automation Co., LTD
8 BAC1002-ARM Hardware Parameter
BAC1002-ARM The hardware parameters of the gateway are as follows:

8.1 Hardware Performance table

The hardware performance is shown in table 8-1-1.

CPU 1Core 300MHz

Memory 64M

Storage 128M Flash

Operating System Linux

1 High-performance 100M/10M adaptive


Ethernet Industrial Network Card, support AUTO
MDI/MDIX
Power supply socket Standard 5.08mm spacing 3PIN connector
i t f
Internal integrated real-time clock, on-board 1
RTC Clock
CR2032 batteries (can be used for 3 years)
board carries 1 buzzer, which can be used for
Buzzer
alarm or prompting sound

Serial communication port 2* RS485/RS232 (Alternative)

Table 8-1-1 hardware performance table

8.2 Electrical specifications and working environment table

Electrical specifications and working environment are shown in table 8-2-1.

Rated power 6W

AC and DC rated voltage 24V, working range 12V


Rated voltage
to 24V.
adopts isolated power module, with lightning surge
Power Protection
protection

Allowable loss of
< 5 ms
power

68
Shanghai Sunfull Automation Co., LTD
confirms to EN61000-6-2:2005, EN61000-6-4:2007
standard, and meets ROHS
CE & ROHS
Lightning surge + 4KV, group pulse + 4KV,
electrostatic contact 4K, air discharge 8K

Working Temperature -20~70℃

Storage temperature -40~85℃

relative humidity in
20%~90% non-condensation
working
relative humidity in
15%~95% non-condensation
storage and

Shock resistance 10 ~ 25 Hz (X、Y、Z direction 2G/30 minutes)

Cooling mode natural air cooling

The front panel is in line with IP65 (fitted with flat


Protection grade panel cabinets) and the rear body of the fuselage is
IP20. 48-hour salt spray test for the whole machine

Mechanical Use of aluminum alloy shell, surface coating


mechanism treatment

Whole machine size 129mmx86mmx 34mm

Whole machine weight 350g (L*W*H)

Table 8-2 electrical specifications and working environment table

8.3 Network Interface

Label 3 in the physical map are Ethernet interface. The default IP address is
192.168.1.88. The IP can be changed, easy to connect communication. Long press
the Reset key, restore the Ethernet to the factory default IP.

The concrete interface of the gateway is illustrated as shown in Figure 8-3-1.

69
Shanghai Sunfull Automation Co., LTD

Figure 8-3-1 schematic diagram of Gateway Interface

8.4 Power interface

The standard 3PIN 5.08mm spacing connector is used in the interface, and the
input pin definition is shown in table 8-4-1.

PIN foot No Port Illustrate Remarks

1 Shell ground wire Connect the earth

2 V- Power ground wire Power input negative


of this machine pole

3 V+ Positive Power Power input positive


Supply pole

Table8-4-1 power interface parameters

Power input supports AC / DC 12V to 24V wide voltage input, supports


overcurrent and lightning protection, and supports reverse connection protection.

70
Shanghai Sunfull Automation Co., LTD

8.5 RS485 interface parameters

The standard 10PIN 5.08mm spacing connector is used in the interface. The
definition of the foot table is shown in table 8-5-3.

PIN foot Port Illustrate Remark

1 A/ TX RS485/RS232 All electric isolation

2 B/ RX (COM1) RS485 and RS232


interface, isolation
3 GND
voltage is 2000V
6 A/ TX RS485/RS232

7 B/ RX (COM2)

8 GND

Table 8-5-3 Serial port parameters

71
Shanghai Sunfull Automation Co., LTD
9 BAC1001-ARM Hardware Parameter
BAC1001-ARM The hardware parameters of the gateway are as follows:

9.1 Hardware Performance table

The hardware performance is shown in table 9-1-1.

CPU 1Core 300MHz

Memory 64M

Storage 128M Flash

Operating System Linux

1 High-performance 100M/10M adaptive


Ethernet Industrial Network Card, support AUTO
MDI/MDIX
Power supply socket Standard 5.08mm spacing 3PIN connector
i t f
Internal integrated real-time clock, on-board 1
RTC Clock
CR2032 batteries (can be used for 3 years)
board carries 1 buzzer, which can be used for
Buzzer
alarm or prompting sound

Serial communication port 1* RS485/RS232 (Alternative)

Table 9-1-1 hardware performance table

9.2 Electrical specifications and working environment table

Electrical specifications and working environment are shown in table 9-2-1.

Rated power 6W

AC and DC rated voltage 24V, working range 12V


Rated voltage
to 24V.
adopts isolated power module, with lightning surge
Power Protection
protection

Allowable loss of
< 5 ms
power

72
Shanghai Sunfull Automation Co., LTD
confirms to EN61000-6-2:2005, EN61000-6-4:2007
standard, and meets ROHS
CE & ROHS
Lightning surge + 4KV, group pulse + 4KV,
electrostatic contact 4K, air discharge 8K

Working Temperature -20~70℃

Storage temperature -40~85℃

relative humidity in
20%~90% non-condensation
working
relative humidity in
15%~95% non-condensation
storage and

Shock resistance 10 ~ 25 Hz (X、Y、Z direction 2G/30 minutes)

Cooling mode natural air cooling

The front panel is in line with IP65 (fitted with flat


Protection grade panel cabinets) and the rear body of the fuselage is
IP20. 48-hour salt spray test for the whole machine

Mechanical Use of aluminum alloy shell, surface coating


mechanism treatment

Whole machine size 118mmx74mmx 35mm (L*W*H)

Whole machine weight 300g

Table 9-2 electrical specifications and working environment table

9.3 Network Interface

The default IP address is 192.168.1.88. The IP can be changed, easy to connect


communication. Long press the Reset key, restore the Ethernet to the factory default
IP.

The concrete interface of the gateway is illustrated as shown in Figure 9-3-1.

73
Shanghai Sunfull Automation Co., LTD

Figure 9-3-1 schematic diagram of Gateway Interface

9.4 Power interface

The standard 3PIN 5.08mm spacing connector is used in the interface, and the
input pin definition is shown in table 8-4-1.

PIN foot No Port Illustrate Remarks

1 Shell ground wire Connect the earth

2 V- Power ground wire Power input negative


of this machine pole

3 V+ Positive Power Power input positive


Supply pole

Table9-4-1 power interface parameters

Power input supports AC / DC 12V to 24V wide voltage input, supports


overcurrent and lightning protection, and supports reverse connection protection.

74
Shanghai Sunfull Automation Co., LTD

9.5 RS485 interface parameters

The standard 5PIN 5.08mm spacing connector is used in the interface. The
definition of the foot table is shown in table 9-5-3.

PIN foot Port Illustrate Remark

1 A/ TX RS485/RS232 All electric isolation

2 B/ RX (COM1) RS485 and RS232


interface, isolation
3 GND

Table 9-5-3 Serial port parameters

75
Shanghai Sunfull Automation Co., LTD

10 BACnet client (master station) access


BACnetScan is developed by Shanghai Sunfull Automation Co., LTD, It is a

BACnet client scan software,easy to operate and quick scan speed from machine.

It can scan BACnetIP and BACnetMSTP server, this software can be used for free,

if you have need, you can contact the company. With BACnetScan, you can browse

the BACnetIP slave device (server) in the LAN, browse the BACnet MSTP slave

device through the serial port, view the properties of the object, and also read and

write to the current values of BO, BV, AO, AV, MSO and MSV objects. Support

BACnet Ethernet, BACnet IP and BACnet MSTP.

 Support read and write present value property, export EXCEL etc.

 Supoort Chinese and English Language.

10.1 BACnet IP

Right click BACnet IP and select “Search Device…” or click button. As the
Figure 10-1。

Figure 10-1 Search Device

76
Shanghai Sunfull Automation Co., LTD

Searched BACnet Device 7 in same Network segment as below Figuer 10-2.

Figure 10-2 Searched Device 7

Click Device ,property and valve on the right, right click Search Object or click

button ,As the following figure 10-3。

Figure 10-3 Search Object

77
Shanghai Sunfull Automation Co., LTD
You can see that all the points configured in the gateway have been scanned, select

one of the points, and right-click to select "Read Object Properties", as shown in

Figure.

Figure 10-4 Read object properties

Right-click on the current value and select Write Value, as shown in Figure 10-5

Figure 10-5 Write object properties

78
Shanghai Sunfull Automation Co., LTD
Write the values in the pop-up window, as shown in Figure 10-6

Figure 10-6 Write object value

10.2 BACnet MS/TP

Figure 10-7 BACnet MS/TP

79
Shanghai Sunfull Automation Co., LTD

Figure 10-8 BACnet MS/TP Properties

Figure 10-9 BACnet MS/TP Device Properties

80
Shanghai Sunfull Automation Co., LTD
11 Frequently asked Questions
11.1 Failed to login ‘http://192.168.1.88/login.html’ WEB server!”

Connecting the gateway on a PC, when you start monitoring, the error
message is constantly prompted in the print message bar” Failed to call
‘http://192.168.1.88/login.html. There are three main reasons for this situation:

 The first possibility is that the current monitoring mode is gateway mode, which needs
to be adjusted to Local PC monitor mode.

 The second possibility is that the port number of the current WEB server is occupied by
other applications on the local computer.

 The third possibility is that the X2BACnetRuntime program is shut down, and only
needs to restart the monitor.

11.2 Remember to the difference of “Upload” and “Download”

It is particularly reminded that after the completion of the project configuration


on PC, the project will be uploaded to the gateway through the button "Upload
project". When you need to view the project in the gateway, you can download the
project in the gateway to the configuration software through the button "download
project”.

11.3 Gateway implementation ModbusRTU to BACnet FAQ

Q1: There are a lot of Modbus drivers in Sunfull Gateway. If we need to collect
data from a watt hour meter with standard ModbusRTU protocol, which driver should
I choose?

A1: For devices that support standard ModbusRTU protocol, you need to select
the driver whose name is ModbusRTUClient.

Q2: How many buses can the Sunfull Gateway can connect? Can each bus be
mixed with different devices (for example, a bus is connected to the water meter and
electricity meter simultaneously)? How many devices can be supported in series by
each bus?

A2:
1) Sunfull Gateway can support 4 RS485 accesses (e.g.BAC2004 ARM supports 2* Full
isolution RS485, 2*RS485/RS232(Alternative)

2) for better communication stability, it is recommended that customers connect the same
equipment to each bus, such as configuring the COM1 connection meter and COM2
receiving the water meter.

81
Shanghai Sunfull Automation Co., LTD
3) no more than 32 buses are recommended for each bus, and one bus must be
connected with multiple devices in series. It is necessary to ensure the unique device
ID between devices.

Q3: For example, if I have 20 meters of the same model connected to a bus,
and I have configured the communication address of one of the meters with
X2BACnet software, is there any way to quickly configure the remaining 19 meters
in this software?

A3: in order to save users time, Sunfull Gateway has done copy-paste and
batch modification functions in many places. For example, copy and paste of the
same device point information, copy and paste between channels, batch
modification of point information (register type, register address, data type, etc.).

When the user completes a point configuration of an electric meter, the other 19
units can quickly complete the configuration by copying and pasting the current
device, and the user pays attention to the equipment station number corresponding
to the site equipment.

Q4: I used the BAC2004 gateway to collect the ModbusRTU data provided by
Siemens 200PLC on the spot, why does the value of the single-precision
floating-point format not correspond to the actual value on site?

A4: for collecting Siemens ModbusRTU data, Sunfull Gateway opens a


single-precision floating-point sequence setting in the device properties. The user
needs to switch the regular 4321-byte format to 2143, save it, and re-upload the
project to the gateway.

Note: for situations like this where the data read is in contrast with the field data,
users can consider switching byte order (the gateway opens up 2-byte integer order,
4-byte integer order, and single-precision floating-point order).

Q5: when using X2BACnet configuration software to build a project, the


server-side BACnet address arrangement is very messy, can it be quickly configured
through operations such as one-click arrangement?

A5: Sunfull X2BACnet configuration software, under the "BACnet Server" menu
bar, designed "auto-arrange register addresses", users only need to click, can
quickly arrange the BACnet addresses from 0.

Q6: The host computer system is Johnson Metasys, when integrating the
Sunfull BACnet gateway, can the roll call on the scan be Chinese displayed?

A6: Sunfull X2BACnet configuration software, under the "BACnet Server" menu
bar, added the "BACnet Character Encoding" option, users only need to switch to
the "Unicode" character set, it also can support Chinese.

82
Shanghai Sunfull Automation Co., LTD
Q7: When the network controller integrates the Sunfull BACnet gateway quickly
through the BACnetIP protocol, why can't we find the Sunfull gateway?

A7:
1) Users need to ensure that the Sunfull gateway is in the same network segment as the
network controller, and the subnet mask and the default gateway must also be
guaranteed to be consistent with the field.

2) Ensure that Sunfull BACnet server device ID is unique and cannot be duplicated with
other devices on the same network.

3) Do not check the menu bar "BACnet server" under " BACnetMSTP Settings", if open
MSTP, it means convert to BACnetMSTP server, it is not able to search the BACnetIP.

4) Users can also test through the BACnetScan scanning tool developed by Sunfull. If
BACnetScan can find the Sunfull BACnet gateway, it means that scanning Sunfull
BACnetIP has no problem. It is necessary to confirm whether the communication
parameters of the Network controller and gateway are set correctly.

83
Shanghai Sunfull Automation Co., LTD
12 CTL Test Certification

84

You might also like