当前位置:网站首页>TIA botu - basic operation

TIA botu - basic operation

2022-04-23 15:55:00 Qingyuan warm song

Catalog

One 、 Personal attention

Two 、 Add a new block

2.1 Tissue block (OB)

2.2 Block (FC: function )

2.3 Function block (FB: Function block )

2.4 Data blocks (DB)

3、 ... and 、 Basic instructions

3.1 Bit logic operations

(1) Normally open

(2) Normally closed

(3) coil ( assignment )

(4) The assignment is negated

(5) Set output

(6) Reset output

(7) The rising edge of the scanning signal

(8) The falling edge of the scanning signal

(9) Move value

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