compare data block

A

Thread Starter

achmad fauzi

how to compare two data blocks if it's contain 2 or more type of data (int, dint, word, bit, word or dword) in PLC S7-314?
 
Are the two DBs identical in format and you just want to do a fast compare without having to bother about each individual data item?

If so, if you do the compare in STL you can just load the data in DWORDs and compare directly. Unlike LAD and FBD, there is no data Type-checking done in STL.

If you prefer working in LAD or FBD, you can still mix in the comparison Network in STL in the same Block - just switch the editor over to STL for this NW and switch back when you're finished.
 
Top