当前位置:网站首页>TIA botu - basic operation
TIA botu - basic operation
2022-04-23 15:55:00 【Qingyuan warm song】
Catalog
2.3 Function block (FB: Function block )
3、 ... and 、 Basic instructions
(7) The rising edge of the scanning signal
(8) The falling edge of the scanning signal
One 、 Personal attention
appear HMI The picture “ Unable to start running system emulation ” problem , Bloggers have two problems , First summer vacation last year , It hasn't been solved at that time , You have to reload the system , Then there's no problem reinstalling the software , Because it's no problem to install all the software you need at the beginning , This problem occurred after using it for a period of time , So I don't know the cause of the problem . My is win10 pro , Berto v15.1.
The second time this problem occurred last week , It scared me directly , Because the front can still use , That day I installed plcsim adv The problem that emerged after , I'll try to delete plcsim, It's not solved , After reinstalling all the software of botu, it's OK again , So it may be a compatibility problem , If you don't need to use plc It's better not to install the simulation plcsim Well .....
Two 、 Add a new block
2.1 Tissue block (OB)
Tissue block (OrganizationBlocks, abbreviation OB) Provides PLC Inside CPU Interface between operating system and user program , It is from CPU A logical block called directly by the operating system , Used to manage PLC The calling and execution of each component in the program are interrupted .OB To determine the PLC The structure of the user program and the calling order of the blocks , Play a “ management ” The role of user programs .
OB The call condition of the block is called “ Triggering event ”, according to “ Triggering event ” Different ,OB Blocks can be divided into several levels , Each level has different priorities , High priority OB Low priority can be interrupted OB Implementation . if necessary ,S7 series PLC except OB1 Outside , You can also use multiple OB block .
2.2 Block (FC: function )
Block (Function, abbreviation FC) Is written by the user 、 Common logical blocks that do not require special data blocks .
FC Blocks can not be called repeatedly in programs , On most occasions ,FC Blocks should be used directly PLC Of “ Absolute address ” or “ Symbolic address ” Programming , But as needed , Some program variables can be defined .
2.3 Function block (FB: Function block )
Function block (FunctionBlocks, abbreviation FB block ) Is written by the user 、 A dedicated data block is required (InstanceDataBlocks, be called “ Real time data block ” or “ Background data block ”, abbreviation DI) Common logical blocks supported .
FB Block and FC The function of blocks is basically the same , but FB In addition, you can use “ Absolute address ” or “ Symbolic address ” Outside of programming , Must be used in structured programming “ Program variables ” Programming , therefore ,FB Must be matched 、 Independent data storage area ——“ Real time data block DI”.DI- Aspects can be called FB Provide what is needed to execute the program “ Program variables ” Assignment and other data , On the other hand , Function block FB Can also pass through DI Return the required data to the logical block calling it .
2.4 Data blocks (DB)
Data blocks (DataBlocks, abbreviation DB) It is a data storage area used to store the data required for the execution of user programs and the results of program execution , Its function is similar to that of flag register , But more . Data blocks DB It can be divided into real-time data blocks according to different purposes (InstanceDataBlocks, Also known as background data block , abbreviation DI) And common data blocks (DataBlocks, Also known as shared data block , abbreviation DB) Two types of .
Real time data block (DI) Used to pass the parameters of the function block , Only function blocks that can be specified FB visit . Call function block FB when , The real-time data block for this function block must also be specified DI, The data in the real-time data block can be automatically generated , They could be FB Data in variable declaration table ( No temporary variables ).
Common data block (DB) Used to store PLC The global data of , be-all FB、FC or OB Can read and write general data blocks , therefore , Also known as shared data blocks . The data in the general data block will not be deleted due to the end of the user program .
3、 ... and 、 Basic instructions
3.1 Bit logic operations
(1) Normally open
Power on and close , The operand of the query is 1 When closed
(2) Normally closed
Power on and close , The operand of the query is 0 When closed
(3) coil ( assignment )
Sets the bits of the specified operand
(4) The assignment is negated
Negates the result of a logical operation and returns the operand
(5) Set output
Specifies that the operand output is set to 1
(6) Reset output
Specifies that the operand output is reset to 0
(7) The rising edge of the scanning signal
The signal of the operand is represented by “0” To “1” when , return 1
(8) The falling edge of the scanning signal
The signal of the operand is represented by “1” To “0” when , return 1
(9) Move value
take IN The input operand at is assigned to OUTx Output
It may not be over ....
版权声明
本文为[Qingyuan warm song]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231550119854.html
边栏推荐
- [split of recursive number] n points K, split of limited range
- leetcode-396 旋转函数
- Go language, array, pointer, structure
- Groupby use of spark operator
- Algorithem_ ReverseLinkedList
- 一刷314-剑指 Offer 09. 用两个栈实现队列(e)
- Application case of GPS Beidou high precision satellite time synchronization system
- C language self compiled string processing function - string segmentation, string filling, etc
- GRBL学习(一)
- Timing model: gated cyclic unit network (Gru)
猜你喜欢
WPS brand was upgraded to focus on China. The other two domestic software were banned from going abroad with a low profile
Spark 算子之partitionBy
Cap theorem
时序模型:长短期记忆网络(LSTM)
Sortby use of spark operator
Treatment of idempotency
[AI weekly] NVIDIA designs chips with AI; The imperfect transformer needs to overcome the theoretical defect of self attention
Timing model: gated cyclic unit network (Gru)
New developments: new trends in cooperation between smartmesh and meshbox
Merging of Shanzhai version [i]
随机推荐
New developments: new trends in cooperation between smartmesh and meshbox
多生成树MSTP的配置
Spark 算子之filter使用
IronPDF for .NET 2022.4.5455
多级缓存使用
ESP32编译环境的搭建
捡起MATLAB的第(6)天
Leetcode-374 guess the size of the number
Website pressure measurement tools Apache AB, webbench, Apache jemeter
一文掌握vscode远程gdb调试
C language --- advanced pointer
Config组件学习笔记
matplotlib教程05---操作图像
Upgrade MySQL 5.1 to 5.69
How can poor areas without networks have money to build networks?
C, calculation method and source program of bell number
Unity Shader学习
Fastjon2他来了,性能显著提升,还能再战十年
5 minutes, turn your excel into an online database, the magic cube net table Excel database
Modèle de Cluster MySQL et scénario d'application