Converting S5 Programs from CPU944 to CPU945
General points to observe
•Some function blocks have been replaced by new commands
•FBs for analog value processing with floating-point parameters (XA, XE, OGR, UGR)
•New function blocks (IP, OP, basic functions, etc.)
•32-bit ACCU
•Old storage modules cannot be implemented, new modules are Flash EPROMs (for current modules you need an
operating system of at least release Z03 and STEP5 V6.6)
•Waiting loops created by operation runtimes will be faster
•Operating system functions are only available via OB250
•Storage configuration completely new through 20-bit addresses (except for I/O area)
•Operating system data remains unchanged
•Assembler blocks cannot be run in the CPU 945
•Absolute address accesses with LIR, TIR, TNB must be adapted
•Handling blocks are the same regarding interface and functionality
•DB1 contains additional parameter data records, above all for interface parameterization
•Connection of OPs not possible via AS511 protocol, apart from that adapted FBs are required
•S flags S0.0 to S4095.7 have been added to the flag area
•New “Mathematical Functions” program package available (SINUS, COSINUS, etc.)
What has to be changed?
Changes in Function Blocks
CPU944 CPU945
1. Integrated FBs:
FB240 COD:B4 -> DEF
FB241 COD:16 -> DUF
FB242 MUL:16 -> xF
FB243 DIV:16 -> :F
FB250 RLG:AE FB250 AE:460 (only AI460,GP format)
FB251 RLG:AA FB251 RLG:AA (GP format)
2. Basic Functions Package:
FB1 ADD:32 -> +D
FB2 SUB:32 -> -D
FB3 MUL:32 FB3 MUL:32 (for CPU945)
FB4 DIV:32 FB4 DIV:32 (for CPU945)
FB5, FB10-13, FB196/197 Same FB numbers (for CPU945)
FB21 COD:B8 -> DED
FB22 COD:32 -> DUD
FB30 AE:464 Integrated FB242 (ET100/200,GP format)
FB31 AE:460 Integrated FB250 (only AI460,GP format)
FB32 AE:463 Integrated FB241 (only AI463,GP format)
FB33 AE:466 Integrated FB243 (only AI466,GP format)
FB44 DB-COPY Integrated OB182 (also OB183/184, only as of
FB45 DB-COPY operating system Z02)
--- FB6 RAD:GP (GP root extractor)
--- FB38 SAVE (save scratch flag)
--- FB39 LOAD (load scratch flag)