How to Use Function Block Diagram in S7 1200 PLC

Question:

Hello, I have included an image that our programmer utilized in the S7 1500 PLC. We are looking to apply the same instructions in the S7 1200 PLC, but are facing difficulty finding a solution. Can anyone assist us in identifying alternative instructions to use in the S7 1200 PLC?

Top Replies

Is it possible to achieve the desired outcome by using the following code syntax: "HMI".IBN_EQ := ("HMI".IBN_Enter = "HMI".IBN_Code); This code snippet compares the values of "HMI".IBN_Enter and "HMI".IBN_Code for equality.

ojz0r inquired if it would be effective to use a different approach to achieve the desired outcome. The code in question involves assigning a value in an IBN_EQ instruction based on the comparison of two other values. They also asked if there are alternatives to using S_COMP in the FBD language.

If you're encountering issues with S_COMP not being supported on the S7-1200, consider creating your own function using the supplied SCL code and then integrating it into your FBD routine.

Incorporating an additional "rung" of SCL to your FBD block can streamline processes, especially if the task isn't frequent enough to warrant its own FC.

Absolutely, I'd recommend checking out the "Convert" or "Move" instructions for the S7-1200 series. They might behave slightly differently from what you're used to on the S7-1500 but should achieve similar results. Also, don't forget to confirm the firmware version of the S7-1200 as sometimes different versions support different instruction sets.

Absolutely, I'd be glad to help. While the S7 1500 PLC and the S7 1200 PLC are similar, there are indeed some differences in how they handle certain instructions. If you could share the specific instructions you're trying to replicate, I could provide a more tailored approach. However, generally, you will need to use TIA Portal to write and interpret the code for both PLCs. Don't forget to leverage Siemens’ extensive library of instructional videos, they have been an enormous help to me in the past.

More Replies β†’

Streamline Your Asset Management
See How Oxmaint Works!!

βœ…   Work Order Management

βœ…   Asset Tracking

βœ…   Preventive Maintenance

βœ…   Inspection Report

We have received your information. We will share Schedule Demo details on your Mail Id.

To add a comment, please sign in or register if you haven't already..   

Frequently Asked Questions (FAQ)

FAQ: FAQs:

Answer: 1. Question: What is the difference between using Function Block Diagrams in S7 1500 PLC versus S7 1200 PLC? Answer: The S7 1500 PLC and S7 1200 PLC may have different instruction sets and capabilities when it comes to Function Block Diagrams. It is essential to check the specific manuals for each PLC to identify suitable alternative instructions for the S7 1200 PLC.

FAQ: 2. Question: Are there specific guidelines for adapting Function Block Diagrams from S7 1500 PLC to S7 1200 PLC?

Answer: Answer: Adapting Function Block Diagrams from one PLC model to another may require understanding the differences in instruction sets and features. It is recommended to consult the programming manuals for both PLC models and possibly seek assistance from experienced programmers familiar with both systems.

FAQ: 3. Question: Can you provide examples of alternative instructions for Function Block Diagrams in the S7 1200 PLC?

Answer: Answer: Examples of alternative instructions for Function Block Diagrams in the S7 1200 PLC may include using different function blocks, programming logic, or structuring the code in a way that aligns with the capabilities of the S7 1200 PLC. Referring to the official Siemens documentation or seeking support from the Siemens community forums can be beneficial in finding specific examples.

Ready to Simplify Maintenance?

Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.

Request Demo  β†’