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 1. Integrated FBs: FB240 COD:B4 FB241 COD:16 FB242 MUL:16 FB243 DIV:16 FB250 RLG:AE FB251 RLG:AA 2. Basic Functions Package: FB1 ADD:32 FB2 SUB:32 FB3 MUL:32 FB4 DIV:32 FB5, FB10-13, FB196/197 FB21 COD:B8 FB22 COD:32 FB30 AE:464 FB31 AE:460 FB32 AE:463 FB33 AE:466 FB44 DB-COPY FB45 DB-COPY ------- CPU945 -> DEF -> DUF -> xF -> :F FB250 AE:460 (only AI460,GP format) FB251 RLG:AA (GP format) -> +D -> -D FB3 MUL:32 (for CPU945) FB4 DIV:32 (for CPU945) Same FB numbers (for CPU945) -> DED -> DUD Integrated FB242 (ET100/200,GP format) Integrated FB250 (only AI460,GP format) Integrated FB241 (only AI463,GP format) Integrated FB243 (only AI466,GP format) Integrated OB182 (also OB183/184, only as of operating system Z02) FB6 RAD:GP (GP root extractor) FB38 SAVE (save scratch flag) FB39 LOAD (load scratch flag) 3. Floating-point Mathematical Function Package: FB15 GP:FPGP FB16 GP:GPFP FB17 GP:ADD FB18 GP:SUB FB19 GP:MUL FB20 GP:DIV FB21 GP:VGL -> FDG -> GFD -> +G -> -G -> xG -> :G -> !=G, >G, >=G, D, >=D, G, >=G,