![BeiJer X2 base 7 Скачать руководство пользователя страница 15](http://html1.mh-extra.com/html/beijer/x2-base-7/x2-base-7_quick-start-manual_2723516015.webp)
X2 Control communication with BFI-E3 by Modbus TCP
SER0020_V1.0.0 2020-11
15 (31)
Nor
m
a
l.d
o
tm
,
2
0
2
0
-07
-01
4.
gvlBFI_HMI
Contain variables to be used together with HMI. Important are the constant describing number of BFI
in network and Structure containing variables copied to/from HMI.
5.
prgBeijerMain_BFI
Contain code for exchanging data between HMI and CODESYS/BCS Tools.
6.
prgBFI_ModbusTCP
Containing Function blocks, one FB for each BFI.
7.
Library Manager
One of the libraries is X2 control BFI Modbus TCP. Contains the FB to control BFI by Modbus TCP.
The FB is compiled and by that not possible to open up. Requires one FB per BFI.
8.
BFI slaves
BFI slaves in the network. Important that each physical BFI has an individual IP-address in
CODESYS/BCS Tools corresponds with the setting in each BFI.
How to add an additional BFI in the network
•
Enter GVL called gvlBFI_HMI. Adjust the global constant
gvlBFI_HMI.gc_iNrOfDrive
to
number of BFI. If 4 pieces of BFI-E3 constant should be 4.
•
Enter GVL called gvlBFI. Adjust the global array variable
gvlBFI.g_aDrive[].
Set the
array to [1..Number of BFI in the network]. If 4 pieces of BFI-E3 constant should be 4.
•
Enter GVL called gvlBFI . Adjust the global array variable
gvlBFI.g_aDriveBEHMI[].
Set
the array to [1..Number of BFI in the network]. If 4 pieces of BFI-E3 constant should be 4.
•
Add another BFI into Modbus TCP network
-
Chose Modbus_TCP_Master (Modbus TCP Master)
-
Right click and ADD Device
-
Chose Modbus TCP Slave
-
Rename it. If it is BFI number 5, Refactoring it to BFI_5.
•
Chose the new BFI
-
In Folder General, set Slave IP-address of the new BFI