2.7 NGVS
2.7.1 Network variable
- The definition of UDT on the sender COPY to the receiver PLC
- The UDT names and definitions on both sides must be completely consistent
- NGVS creation cannot be empty, otherwise a compilation error will be reported
2.7.2 Introduction to NGVS definition
-
Communication between Baosky PLCs using Baosky IDE can be achieved by configuring the NGVS. NGVS is a global variable group that acts on communication between PLCs, in which specific transmission parameters are defined in its object properties
-
The variables in the NGVS must be defined in a strict and identical list in the sending PLC device and the receiving PLC device. Only the application sending the PLC device can define variables in the NGVS. One NGVS can be used in one or more projects
-
There are two types of NGVS. One type is NGVS (SENDER), which is defined in the sending PLC. The other type is NGVS (RECEIVER), which is defined in the receiving PLC
-
NGVS Communications
- In the sending PLC, NGVS is of NGVS (SENDER) type. Defining the sender list in another project requires an export file
- In the receiving PLC, NGVS is of NGVS (RECEIVER) type. Before creating an NGVS (RECEIVER), the PLC must have created an NGVS (SENDER). When creating an NGVS (RECEIVER), user can select the NGVS (SENDER) of the sending PLC in the project; user can also read this variable list from the export file generated from the NGVS (SENDER) of the sending PLC
-
Variables in NGVS are transmitted as broadcasts in one direction only: sender to receiver
- The same PLC can be used as both a sender and a receiver in network communication
- The same PLC can include one or more NGVS (SENDER) or one or more NGVS (RECEIVER) at the same time
2.7.3 Pay attention when using NGVS
- The maximum number of variables that can be defined in one NGVS is 512
- The maximum length of one NGVS is 1024 bytes
- The maximum number of NGVS in one Baosky PLC (T3) is 8
- The maximum number of NGVS in one Baosky PLC (T4) is 32
- The fastest communication setting for Baosky PLC (T3) is 20ms
- The fastest communication setting for Baosky PLC (T4) is 10ms
- RETAIN variables are not allowed
- FB type variables are not allowed
- Structure type array (ARRAY OF STRUCT) is not allowed
- Setting constants is not allowed
- NGVS contents are not allowed to be empty
- Specifically how to add reference Add network global variable