Table of contents
1 General.................................................................................................................. 13
1.1 Copyright © VIPA GmbH ............................................................................... 13
1.2 About this manual........................................................................................... 14
2 Important notes.................................................................................................... 15
2.1 General........................................................................................................... 15
2.2 Internally used blocks..................................................................................... 15
2.3 No optimized block access............................................................................. 16
2.4 Declaration types............................................................................................ 16
3 IL operations......................................................................................................... 17
3.1 Overview......................................................................................................... 17
3.2 Abbreviations.................................................................................................. 21
3.3 Comparison of syntax languages................................................................... 24
3.4 Differences between SPEED7 and 300V programming................................. 25
3.5 Registers........................................................................................................ 27
3.6 Addressing examples..................................................................................... 28
3.7 Math instructions............................................................................................ 30
3.8 Block instructions............................................................................................ 35
3.9 Program display and Null operation instructions............................................ 36
3.10 Edge-triggered instructions........................................................................... 37
3.11 Load instructions........................................................................................... 38
3.12 Shift instructions........................................................................................... 41
3.13 Setting/resetting bit addresses..................................................................... 43
3.14 Jump instructions.......................................................................................... 44
3.15 Transfer instructions..................................................................................... 47
3.16 Data type conversion instructions................................................................. 51
3.17 Comparison instructions............................................................................... 53
3.18 Combination instructions (Bit)....................................................................... 55
3.19 Combination instructions (Word).................................................................. 63
3.20 Timer instructions......................................................................................... 64
3.21 Counter instructions...................................................................................... 65
4 Block parameters................................................................................................. 66
4.1 HW identifier - HW_ID.................................................................................... 66
4.2 General and Specific Error Information RET_VAL......................................... 66
5 Include VIPA library.............................................................................................. 69
5.1 Integration into Siemens SIMATIC Manager.................................................. 69
5.2 Integration into Siemens TIA Portal................................................................ 70
6 Organization Blocks............................................................................................. 71
6.1 Overview......................................................................................................... 71
6.2 Main................................................................................................................ 71
6.2.1 OB1 - Main - Program Cycle....................................................................... 71
6.3 Startup............................................................................................................ 72
6.3.1 OB 100, OB 102 - Complete/Cold Restart - Startup.................................... 72
6.4 Communication Interrupts.............................................................................. 74
6.4.1 OB 55 - DP: Status Alarm - Status Interrupt................................................ 74
6.4.2 OB 56 - DP: Update Alarm - Update Interrupt............................................. 75
6.4.3 OB 57 - DP: Manufacture Alarm - Manufacturer Specific Interrupt............. 76
6.5 Time delay Interrupts...................................................................................... 77
VIPA SPEED7
Table of contents
HB00 | OPL_SP7 | Operation list | en | 18-30 3