Skip to main content

Phase 1 - Investigation - Migrating PLC

· 2 min read
Adrian Littlejohns
Industrial Process Control and Automation Enthusiast

Today's Tasks

  1. Investigate significance of migration removing OB85 & 87
  2. Add IO Modules to 1500 Hardware Config
  3. Begin creation of SCL functions which didn't migrate.
    1. Create replacement for "REAL_TO_INT"
    2. Create replacement for "REAL TO TIME"
    3. Replace usage for "REAL TO TIME"
    4. Replace usage for "REAL TO INT"
    5. Create replacement for "SBL Reset Tmp Logg Data" 📝 TODO

Investigate significance of migration removing OB85 & 87

What are OB85 and OB87?

Findings

info
  • OB85 "Communication Fault"
  • OB87 "RackFlt"

These blocks were empty, so only used to prevent CPU Stop, if they were called.

What next?

Future Task

If time allows to investigate system diagnostics.

Add IO Modules to 1500 HW Config

Method

Re-migrated from classic project this time selecting the "Include hardware configuration"1 checkbox and followed instruction from page 47 to 54.

Still have errors with FC248, FC250 and FC346 as these were SCL blocks without the source code. Will need to implement new function for these FC's.

Implementation of SCL Functions

Implemented the "REAL TO TIME" and "REAL TO INT" functions in SCL mainly employing the CONVERT function.

Method - How to use CONVERT

In the editor start typing CONV and a context menu pops up for the selection of source and then destination data type.

Found this in the TIA (F1) Helper docs.

Implementing FC346 "SBL Reset Tmp Logg Data" is going to take more investigation into it's use and that of the Logger mechanism in general.

What's next?

Following this up, for starters, with Is _STD_DB_BUFFER actually employed?

References

  1. Guide for Migrating SIMATIC S7-300/400 to SIMATIC S7-1500 and TIA Portal, page 47