1、 AdvanTrol-Pro2.65 1 .1 2 .2 3 .3 3.1 3 3.2 3 3.2.1 .4 3.2.2 .4 3.2.3 .4 3.2.4 .7 3.2.5 .8 3.2.6 .8 3.2.7 .8 3.2.8 .9 3.2.9 .10 3.2.10 .10 3.2.11 . 11 3.2.12 . 11 3.3 FBD 12 3.3.1 FBD .12 3.3.2 FFB .13 3.3.3 .14 3.3.4 .14 3.3.5 .14 3.3.6 .15 3.3.7 FBD .16 3.4 LD .18 3.4.1 LD 19 3.4.2 .20 3.4.3 .22 3
2、.4.4 .24 3.4.5 .24 3.4.6 LD 25 3.5 SFC27 3.5.1 .30 3.5.2 step 30 3.5.3 Transition .31 3.5.4 Jump 32 3.5.5 Alternative Branch .33 3.5.6 .33 3.5.7 .34 3.6 ST .36 3.6.1 ST 36 3.6.2 ST 42 3.6.3 .54 3.6.4 .55 3.6.5 .56 3.6.6 DFB .57 3.6.7 .58 4 .60 4.1 60 4.2 61 4.3 63 4.4 71 4.5 72 4.6 73 4.7 73 4.8 75
3、5 .76 6 .1 1 SUPCON Windows Windows LD FBD SFC ST DFB LD FBD SFC ST FBD LD SFC ST DFB LD FBD SFC ST 200 IEC IEC 1 DCS SUPCON DCS IEC61131-3 SUPCON Windows Windows Windows F1 2 2 LD FBD SFC ST DFB File Windows Help DFB 1. Windows 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. EFB DFB DFB 12. EFB DFB DFB 13. 14. 15.
4、 FBD LD (SFC) 16. 3 17. 3 LD FBD SFC ST FBD LD DFB LD FBD 3.1 FBD LD SFC ST IEC61131-3 IEC61131-3 FBD LD SFC ST ST FBD LD SFC ST 3.2 4 3.2.1 Project Section 3.2.2 FBD LD SFC ST DFB DFB 3.2.3 3-1 5 3-2 3-3 3-4 6 3-5 3-6 *.exp DFB DFB 7 3-7 3-8 3.2.4 3-9 8 1Ts 0.1s 1Ts = 0.1s. 3.2.5 SFC EFB DFB FBD LD
5、 SFC 3.2.6 BOOL 1 0 1 BYTE 1 0 255 WORD 2 0 65535 DWORD 4 0 4294967295 INT 2 -32768 +32767 UINT 2 0 65535 LONG 4 -2147483648 2147483647 ULONG 4 0 4294967295 SFLOAT 2 -7.9998 +7.9998 FLOAT 4 1.175490351E-38 - 3.402823466E+38 structAccum 8 3.2.7 structAccum struct structAccum sfloat remainder; / long
6、accum; / int reserved; / remainder accum reserved 9 remainder 1 accum 0 1 AI sum1 sum0 sum1 32 sum0 16 sfloat 12 4 sum0 0 15.999 sum1 accum1 accum2 accum1=12.123443 accum1.sum0=12.123443 accum1.sum1=0 accum2=12.123443 accum2.remainder=0.123443 accum2.accum=12 accum1=34.457638 accum1.sum0=2.457638 ac
7、cum.sum11=2 sum1 17 sum1=2, 216=32 accum2=34.457638 accum2.remainder=0.457638 accum2.accum=34 3.2.8 BOOL 1 FALSE TRUE BYTE 1 8 WORD 16 DWORD 32 INT 16 0 1 UINT 16 LONG 32 0 1 ULONG 32 SFLOAT 16 SFLOAT N 0 1 FLOAT 32 N=2 P S S N N P N N =0 =1 =0 =1 10 3.2.9 DFB DFB DFB DFB DFB DFB DFB DFB DFB FFB DFB DFB FFB DFB DFB DCS EFB FFB DFB DFB DFB 3.2.10 11 3.2.11 3-10 3.2.12