当前位置:网站首页>Establishment of multiple background blocks in botu software_ Old bear passing by_ Sina blog

Establishment of multiple background blocks in botu software_ Old bear passing by_ Sina blog

2022-06-25 23:55:00 wenroudelang8888

Used to Step7 All technicians know , In function block FB In the process of using, it needs to cooperate with the background data block DB To use , When a formal parameter is established for FB When making repeated calls , How many calls , A corresponding number of background data blocks must be provided . So when FB The number of calls to is , It will occupy more data blocks , Therefore, the number of data blocks can be effectively reduced when using multiple background data blocks .

stay Step7 The establishment method of using multiple background data blocks in our software is somewhat different from that in botu software . Next, we take a simple star delta step-down startup as an example to illustrate the establishment of multiple background data blocks in botu software :

One 、 The establishment of variable table

Two 、 Create a new one FB block , Name the star triangle startup control block

3、 ... and 、 Open the new FB block , First establish the interface parameters as shown in the figure :

Four 、 Use the established interface parameters to write the star triangle control program

5、 ... and 、 Create a for the startup block FB block , In this FB Create two... In the interface parameters of the block static Variable , Respectively motor1 and motor2, The data type of the variable is the previously established “ Star delta start control ”

6、 ... and 、 Starting FB The star triangle start control block is called in the block , Select multiple backgrounds in the call selection , Interface parameter name: select the name of the established static variable

7、 ... and 、 Assign the corresponding pins to the control block

8、 ... and 、 stay OB1 Call the established startup in FB block , And assign a data block DB block

Nine 、 Download to PLC Debugging and running in



原网站

版权声明
本文为[wenroudelang8888]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206252107002021.html