TIA botu - basic operation
2022-04-23 15:55:00 【Qingyuan warm song】
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]所创，转载请带上原文链接，感谢
- Spark 算子之交集、并集、差集
- Leetcode-396 rotation function
- One brush 312 - simple repetition set - Sword finger offer 03 Duplicate number in array (E)
- 一刷313-剑指 Offer 06. 从尾到头打印链表（e）
- [section 5 if and for]
- Import address table analysis (calculated according to the library file name: number of imported functions, function serial number and function name)
- Simple usage of dlopen / dlsym / dlclose
C language --- advanced pointer
Filter usage of spark operator
CVPR 2022 quality paper sharing
C language self compiled string processing function - string segmentation, string filling, etc
【开源工具分享】单片机调试助手（示波/改值/日志） - LinkScope
Use bitnami PostgreSQL docker image to quickly set up stream replication clusters
Groupby use of spark operator
[AI weekly] NVIDIA designs chips with AI; The imperfect transformer needs to overcome the theoretical defect of self attention
Upgrade MySQL 5.1 to 5.611
Best practices of Apache APIs IX high availability configuration center based on tidb
C, calculation method and source program of bell number
The biggest winner is China Telecom. Why do people dislike China Mobile and China Unicom?
CVPR 2022 quality paper sharing
Website pressure measurement tools Apache AB, webbench, Apache jemeter
一刷312-简单重复set-剑指 Offer 03. 数组中重复的数字（e）
Basic greedy summary
WPS brand was upgraded to focus on China. The other two domestic software were banned from going abroad with a low profile