mrsflow.blogg.se

Step 7 5.5 fb12
Step 7 5.5 fb12







step 7 5.5 fb12

The connection number is stored in a static tag and so in the instance data block DB105. Change the connection number in network 2 of FB105 in accordance with your configuration. You can change the connection number separately in FB105. The value for the "ID" input parameter must be taken from the Properties dialog of the S7 connection configured in NetPro (see Fig. The FB12 "BSEND" and FB13 "BRCV" communication block calls are in FB105.Īt the "ID" input parameter of the communication blocks you must specify the connection number of the S7 connection configured in NetPro. After FB105 has been run the M0.3 "START-UP" is reset.įB105 is called in the OB1 cycle. FB105 is called in this OB (instance data block: DB105) with M0.3 "START-UP" as parameter (INIT_COM).

step 7 5.5 fb12

In this OB, the first communication trigger is enabled with marker 0.3 "START-UP". The OB100 is a restart OB and is run when the CPU is restarted (warm start). The STEP 7 program consists of blocks OB100, OB1, FB105, DB105, DB200, DB201, FB12 and FB13. You find the value that must be specified for the "ID" input parameter of communication blocks FB12 "BSEND" and FB13 "BRCV" in the Properties dialog of the S7 connection -> tab "General". These are for clearly identifying the S7 connection between the communication partners. You also need to make sure you assign the rack/slot and connection resource correctly. Make sure you assign the IP address or PROFIBUS address correctly when you configure the S7 connection. If the communication partner is not configured in the same STEP 7 project as the S7-300 station, then an unspecified S7 connection is configured. You can configure a specified S7 connection if the communication partners are configured together in a STEP 7 project. The timer resource T10 is used in this sample program.Ĭonfigure an S7 connection for the CPU in NetPro. Save and compile the hardware configuration of your S7-300 station and load it into the CPU. The send request is triggered by this clock marker. The sample program shows the functions of the FB12 "BSEND" and FB15 "BRCV" communication blocks using an S7 connection.įirst create the hardware configuration for your S7-300 station.Ĭonfigure the Marker byte 10 as clock marker. The FB12 "BSEND" function block is for sending data and the FB13 "BRCV" function block is for receiving data. The S7 program contains the call of the communication blocks FB12 "BSEND" and FB13 "BRCV" from the Standard Library.

step 7 5.5 fb12

The latest version of the FB12 "BSEND" and FB13 "BRCV" communication blocks with the "CPU_300" family for data exchange by way of the integrated PROFINET interface of a S7-300 CPU, IM151-8 PN/DP CPU or IM154-8 CPU is available in the Standard Library under "Communication Blocks > Blocks".The latest version of the FB12 "BSEND" and FB13 "BRCV" communication blocks for data exchange by way of a CP343-1 or CP342-5 is available in the SIMATIC_NET_CP library under "CP 300 > Blocks".BSEND and BRCV can communicate simultaneously through one connection.The end of the job is indicated by "DONE", "NDR" or "ERROR".The FB13 function block is activated by the "EN_R" input parameter.The FB12 function block is activated by the "REQ" input parameter.The FB12 and FB13 function blocks run for several OB1 cycles.

step 7 5.5 fb12

In this example, the blocks are called in the OB1 cycle (see also Entry ID: 2795485).The FB12 and FB13 function blocks are asynchronous communication functions.The S7 connection has to be configured on both sides, because the S7 communication by way of FB12 "USEND" and FB13 "URCV" is based on the client-client principle.įeatures of the communication blocks FB12 "BSEND" and FB13 "BRCV"









Step 7 5.5 fb12