920i weight sensor script

920i weight sensor script

Version

V1.0

Script name

BCE_MEAS_920i-SCR-22

Last updated

2019-08-08

Revision information

No revision

Sensor - data to publish to broker.

Settings - user configurable settings.

Operating principle

When weight operation is done then 920i sends messages which is read by FMS device. Then data is published to broker server. Packet from 920i have to be programmed as described in image 1.

Image 1. 920i programmed packet.

 

Table 1. Sensors and settings descriptions.

Nr.

Name

Type

Description

1.

Client ID

Sensor

Client ID

2.

Parity

Setting

Communication settings

3.

Communication port

Setting

RS-232 or RS-485

4.

Debug

Setting

For development purpose

5.

Number of Bin

Sensor

This will show current client bin number

6.

Weight

Sensor

This will show weight of current bin of current client. Value in kg.

7.

Total weight

Sensor

This will show current total wight of current client. Value in kg.

8.

Communication port baud rate

Setting

Communication settings

9.

Number of bits

Setting

Communication settings

10.

Debug sensor

Sensor

This let see raw message from 920i if debug on

11.

Type

Sensor

This will show current bin waste type


note: Sensor_U32UserDefined1 (16390),Sensor_F32UserDefined2 (40965),Sensor_F32UserDefined3 (40966),Sensor_STRING3 (49154) cant be used in any other script with this script.

Connection

Image 2. Connection between FMS500 XtCan and 920 device RS485 ports.

Image 3.Connection between FMS500 XtCan and 920 device RS232 ports.

 

Device RS232 could be connected to one of 3 RS232 ports depending on data output from device.