NANZO IEC103 Power Data Acquisition Technology Solution - Edge Gateway Communication Manager Interface 104
Project Background:Multiple meters through the supplier's NGS8801 communication management machine host through the South since the 103 protocol network port connected to the host, the data 5 minutes to summon a call, the data passed over no database, directly in the window10 system in the supplier's client display
Requirements for the implementation of the function: the 103 message processing, the data through the MQTT protocol to the customer specified third-party platform
General Industrial Data Acquisition System
The general industrial data acquisition system developed by our company supports the collection of data in IEC103 format and the installation of IEC104 protocol or mqtt protocol for reporting data.
IEC103 devices support data transmission via passthrough: when connecting to the management system, SmartLogger transmits the information of IEC103 devices to the management system via passthrough, without parsing the data of IEC103 devices.
There are two types of IEC103 protocol message formats, fixed frame and variable frame.
1. Fixed Frame
Fixed frame length message is mainly used for transmitting "call, command, acknowledgement, answer" and other information, which is only 5 bytes.
Table 1 Fixed frame length message format
(1) 10H is the header flag of fixed frame;
(2) 16H is the tail flag of fixed frame;
(3) The link address field is specified as the sub-station number, the range of values 1 ~ FEH, the specific value of which is determined by the user in the system design; FEH is used as the broadcast address of the master station to the sub-station, and 0H is reserved;
4) Check digit = (control domain + link address domain) MOD256;
(5) The link control field accounts for 1 byte, but the significance represented by uplink and downlink is different.
(1) The significance of the link control domain in the downlink (transmission from the master to the slave) message is shown in Table 2.
Table 2: Format of link control fields in downlink messages
The significance of the link control field in the uplink (transmission from the slave to the master) message is shown in Table 3.
Table 3 Link control field format of uplink message
③ RES: Reserved bit (set to 0).
④PRM: start flag bit, PRM=1 when the start station transmits the message, PRM=0 when the slave station transmits the message.
⑤FCB: Frame Count Bit, it is an important mechanism to ensure the security of information transmission, the controlled station decides whether to retransmit the previous frame by judging whether FCB is flipped or not. The frame count bit FCB of the reset command is always 0, and the frame count valid bit FCV = 0.
⑥ FCV: Frame Count Bit Valid bit, FCV=1 means FCB is valid, FCV=0 means FCB is invalid. FCV is always 0 for send/no answer service and broadcast messages.
(vii) ACD: request access to the first level of user data, ACD = 1 indicates that the controlled station has the first level of data.
DFC: data flow control bit, DFC=1 indicates that the buffer of the controlled station is full and cannot receive the subsequent messages.
评论
发表评论