Вы находитесь на странице: 1из 16

System Function Blocks Number Name SFB 0 SFB 1 SFB 2 SFB 3 SFB 4 SFB " SFB $ SFB * SFB

12 SFB 13 SFB 14 SFB 1" SFB 10 SFB 1* SFB 20 SFB 21 SFB 22 SFB 23 SFB 2* SFB 30 SFB 31 SFB 32 CTU CTD CTUD TP TO TOF USE D U+C, BSE D B+C, GET PUT P+I T ST1+T STOP +ESU%E ST1TUS UST1TUS Family IEC_TC IEC_TC IEC_TC IEC_TC IEC_TC IEC_TC Description Count Up Count Down Count Up/Down Generate a Pulse Generate an On Dela! Generate an O## Dela!

CO%_FU C Un&oor'(nate' Sen'(n) o# Data CO%_FU C Un&oor'(nate' +e&e(-(n) o# Data CO%_FU C Sen'(n) Se).ente' Data CO%_FU C +e&e(-(n) Se).ente' Data CO%_FU C +ea' Data #ro. a +e.ote CPU CO%_FU C /r(te Data to a +e.ote CPU CO%_FU C Sen' Data to Pr(nter CO%_FU C In(t(ate a /ar. or Col' +estart on a +e.ote De-(&e CO%_FU C C2an)(n) a +e.ote De-(&e to t2e STOP State CO%_FU C In(t(ate a 3ot +estart on a +e.ote De-(&e CO%_FU C 4uer! t2e Status o# a +e.ote Partner CO%_FU C +e&e(-e t2e Status o# a +e.ote De-(&e

3S_COU T COU TE+S Counter 52()26spee' &ounter7 (nte)rate' #un&t(on8 5onl! e9(st on t2e CPU 312 IF% an' CPU 314 IF%8 F+E4_%ES COU TE+S Fre:uen&! %eter 5#re:uen&! .eter7 (nte)rate' #un&t(on 5onl! e9(st on t2e CPU 312 IF% an' CPU 314 IF%8 OTIF;_$P CO%_FU C Generat(n) <lo&= relate' .essa)es w(t2out a&=nowle')e.ent (n'(&at(on D+U% TI%E+S I.ple.ent a Se:uen&er

SFB 33 SFB 34 SFB 3" SFB 30 SFB 3? SFB 3$ SFB 3* SFB 41 SFB 42 SFB 43 SFB 44 SFB 40 SFB 4? SFB 4$ SFB 4* SFB "2 SFB "3 SFB "4 SFB 00

1>1+% 1>1+%_$

CO%_FU C Generate Blo&=6+elate' %essa)es w(t2 1&=nowle').ent D(spla! CO%_FU C Generate Blo&=6+elate' %essa)es w(t2out ,alues #or $ S()nals

1>1+%_$P CO%_FU C Generate Blo&=6+elate' %essa)es w(t2 ,alues #or $ S()nals OTIF; 1+_SE D 3SC_1_B POS CO T_C CO T_S PU>SEGE 1 1>OG DIGIT1> COU T CO%_FU C Generate Blo&=6+elate' %essa)es w(t2out 1&=nowle').ent D(spla! CO%_FU C Sen' 1r&2(-e Data COU TE+S Counter 1/B 5(nte)rate' #un&t(on8 5onl! e9(st on t2e CPU 314 IF%8 ICO T ICO T ICO T ICO T TEC_FU C TEC_FU C TEC_FU C Pos(t(on 5(nte)rate' #un&t(on8 5onl! e9(st on t2e CPU 314 IF%8 Cont(nuous Control 5onl! e9(st on t2e CPU 314 IF%8 Step Control 5onl! e9(st on t2e CPU 314 IF%8 Pulse Generat(on 5onl! e9(st on t2e CPU 314 IF%8 Pos(t(on(n) w(t2 1nalo) Output 5onl! e9(st on t2e S?6 300C CPUs8 Pos(t(on(n) w(t2 D()(tal Output 5onl! e9(st on t2e S?6 300C CPUs8 Controll(n) t2e Counter 5onl! e9(st on t2e S?6300C CPUs8 Controll(n) t2e Fre:uen&! %easure.ent 5onl! e9(st on t2e S?6300C CPUs8 Controll(n) Pulse /('t2 %o'ulat(on 5onl! e9(st on t2e S?6300C CPUs8 +ea'(n) a Data +e&or' /r(t(n) a Data +e&or' +e&e(-(n) an Interrupt Sen'(n) Data 51SCII7 3*045+88 5onl! e9(st on t2e S?6 300C CPUs8

F+E4UE C TEC_FU C PU>SE +D+EC /++EC +1>+% SE D_PTP TEC_FU C DP DP DP TEC_FU C

SFB 01 SFB 02 SFB 03 SFB 04 SFB 0" SFB ?" SFB $1

+EC,_PTP

TEC_FU C

+e&e(-(n) Data 51SCII7 3*045+88 5onl! e9(st on t2e S?6 300C CPUs8 Delet(n) t2e +e&e(-e Bu##er 51SCII7 3*045+88 5onl! e9(st on t2e S?6300C CPUs8 Sen'(n) Data 5+@ "128 5onl! e9(st on t2e S?6300C CPUs8 Fet&2(n) Data 5+@ "128 5onl! e9(st on t2e S?6300C CPUs8 +e&e(-(n) an' Pro-('(n) Data 5+@ "128 5onl! e9(st on t2e S?6300C CPUs8 Sen' (nterrupt to DP .aster +ea' Pre'e#(ne' Para.eter

+ES_+EC, TEC_FU C SE D_+@ TEC_FU C

FETC3_+@ TEC_FU C SE+,E_+@ TEC_FU C S1>+% +D_DP1+ DP IO_FU CT

System Function Calls Number Name SFC 0 SFC 1 SFC 2 SFC 3 SFC 4 SFC " SFC 0 SFC ? SFC * SFC 10 SFC 11 SFC 12 SET_C>@ +E1D_C>@ SET_+T% CT+>_+T% Family Description

C>@_FU C Set S!ste. Clo&= C>@_FU C +ea' S!ste. Clo&= C>@_FU C Set +un6t(.e %eter C>@_FU C Start/Stop +un6t(.e %eter

+E1D_+T% C>@_FU C +ea' +un6t(.e %eter G1D+_>GC IO_FU CT +D_SI FO DP_P+1> E _%SG DIS_%SG DPS;C_F+ D_1CT_DP 4uer! >o)(&al 1''ress o# a C2annel

DB_FU CT +ea' OB Start In#or.at(on DP Tr())er a 3ar'ware Interrupt on t2e DP %aster

CO%_FU C Ena<le Blo&=6+elate'7 S!.<ol6+elate' an' Group Status %essa)es CO%_FU C D(sa<le Blo&=6+elate'7 S!.<ol6+elate' an' Group Status %essa)es DP DP S!n&2ron(Ae Groups o# DP Sla-es Dea&t(-at(on an' a&t(-at(on o# DP sla-es

SFC 13 SFC 14 SFC 1" SFC 1? SFC 1$ SFC 1* SFC 20 SFC 21 SFC 22 SFC 23 SFC 24 SFC 2" SFC 20 SFC 2? SFC 2$ SFC 2* SFC 30 SFC 31 SFC 32 SFC 33 SFC 34 SFC 3" SFC 30 SFC 3?

DP +%_DG DI1G STC DP+D_D1T DP

+ea' D(a)nost(& Data o# a DP Sla-e 5Sla-e D(a)nost(&s8 +ea' Cons(stent Data o# a Stan'ar' DP Sla-e /r(te Cons(stent Data to a DP Stan'ar' Sla-e

DP/+_D1T DP

1>1+%_S4 P%C_FU C Generate 1&=nowle')ea<le Blo&=6+elate' %essa)es 1>1+%_S P%C_FU C Generate Per.anentl! 1&=nowle')e' Blo&=6+elate' %essa)es

1>1+%_SC P%C_FU C 4uer! t2e 1&=nowle').ent Status o# t2e last 1>1+%_S4 Enter(n) State %essa)e B>@%O, FI>> C+E1T_DB DE>_DB TEST_DB CO%P+ESS UPD1T_PI UPD1T_PO SET_TI T C1 _TI T 1CT_TI T 4+;_TI T S+T_DI T C1 _DI T 4+;_DI T %P_1>% %S@_F>T D%S@_F>T %O,E %O,E Cop! ,ar(a<les In(t(al(Ae a %e.or! 1rea

DB_FU CT Create Data Blo&= DB_FU CT Delete Data Blo&= DB_FU CT Test Data Blo&= DB_FU CT Co.press t2e User %e.or! IO_FU CT IO_FU CT Up'ate t2e Pro&ess I.a)e Up'ate Ta<le Up'ate t2e Pro&ess I.a)e Output Ta<le

PG%_C T> Set T(.e6o#6Da! Interrupt PG%_C T> Can&el T(.e6o#6Da! Interrupt PG%_C T> 1&t(-ate T(.e6o#6Da! Interrupt PG%_C T> 4uer! T(.e6o#6Da! Interrupt PG%_C T> Start T(.e6Dela! Interrupt PG%_C T> Can&el T(.e6Dela! Interrupt PG%_C T> 4uer! T(.e6Dela! Interrupt PG%_C T> Tr())er %ult(&o.put(n) Interrupt DI1G STC DI1G STC %as= S!n&2ronous Errors Un.as= S!n&2ronous Errors

SFC 3$ SFC 3* SFC 40 SFC 41 SFC 42 SFC 43 SFC 44 SFC 40 SFC 4? SFC 4$ SFC 4* SFC "0 SFC "1 SFC "2 SFC "4 SFC "" SFC "0 SFC "? SFC "$ SFC "* SFC 00 SFC 01 SFC 02 SFC 03

+E1D_E++ DIS_I+T E _I+T DIS_1I+T E _1I+T +E_T+IG+ +EP>_,1> STP /1IT S C_+TCB

DI1G STC I+T_FU C I+T_FU C I+T_FU C I+T_FU C

+ea' Error +e)(ster D(sa<le ew Interrupts an' 1s!n&2ronous Errors Ena<le ew Interrupts an' 1s!n&2ronous Errors Dela! 3()2er Pr(or(t! Interrupts an' 1s!n&2ronous Errors Ena<le 3()2er Pr(or(t! Interrupts an' 1s!n&2ronous Errors

PG%_C T> +e6tr())er C!&le T(.e %on(tor(n) DI1G STC Trans#er Su<st(tute ,alue to 1&&u.ulator 1

PG%_C T> C2an)e t2e CPU to STOP PG%_C T> Dela! E9e&ut(on o# t2e User Pro)ra. C>@_FU C S!n&2ron(Ae Sla-e Clo&=s 4uer! t2e %o'ule Slot Belon)(n) to a >o)(&al 1''ress 4uer! all >o)(&al 1''resses o# a %o'ule +ea' a S!ste. Status >(st or Part(al >(st /r(te a User6De#(ne' D(a)nost(& E-ent to t2e D(a)nost(& Bu##er +ea' De#(ne' Para.eters /r(te D!na.(& Para.eters /r(te De#ault Para.eters 1ss()n Para.eters to a %o'ule /r(te a Data +e&or' +ea' a Data +e&or'

>GC_G1D+ IO_FU CT +D_>G1D+ IO_FU CT +DS;SST DI1G STC

/+_US%SG DI1G STC +D_P1+% /+_P1+% IO_FU CT IO_FU CT

/+_DP1+% IO_FU CT P1+%_%OD IO_FU CT /+_+EC +D_+EC GD_S D GD_+C, CO T+O> 1B_C1>> IO_FU CT IO_FU CT

CO%_FU C Sen' a GD Pa&=et CO%_FU C Fet&2 a +e&e(-e' GD Pa&=et CO%_FU C 4uer! t2e Status o# a Conne&t(on Belon)(n) to a Co..un(&at(on SFB Instan&e P>1STICS 1sse.<l! Co'e Blo&= 5onl! e9(sts #or CPU 0148

SFC 04 SFC 0" SFC 00 SFC 0? SFC 0$ SFC 0* SFC ?0 SFC ?1 SFC ?2 SFC ?3 SFC ?4 SFC ?$ SFC ?* SFC $0 SFC $1 SFC $2 SFC $3 SFC $4 SFC $" SFC $? SFC *0

TI%E_TC@ B_SE D B_+C, B_GET B_PUT B_1BO+T GEO_>OG >OG_GEO I_GET I_PUT I_1BO+T OB_+T SET +SET UB>@%O, C+E1_DB> +E1D_DB> /+IT_DB> C+E1_DB C_DI1G 3_CT+>

C>@_FU C +ea' t2e S!ste. T(.e CO%_FU C Sen' Data to a Co..un(&at(on Partner outs('e t2e >o&al S? Stat(on CO%_FU C +e&e(-e Data #ro. a Co..un(&at(on Partner outs('e t2e >o&al S? Stat(on CO%_FU C +ea' Data #ro. a Co..un(&at(on Partner outs('e t2e >o&al S? Stat(on CO%_FU C /r(te Data to a Co..un(&at(on Partner outs('e t2e >o&al S? Stat(on CO%_FU C 1<ort an E9(st(n) Conne&t(on to a Co..un(&at(on Partner outs('e t2e >o&al S? Stat(on IO_FU CT IO_FU CT Deter.(ne Start 1''ress o# a %o'ule Deter.(ne t2e Slot Belon)(n) to a >o)(&al 1''ress

CO%_FU C +ea' Data #ro. a Co..un(&at(on Partner w(t2(n t2e >o&al S? Stat(on CO%_FU C /r(te Data to a Co..un(&at(on Partner w(t2(n t2e >o&al S? Stat(on CO%_FU C 1<ort an E9(st(n) Conne&t(on to a Co..un(&at(on Partner w(t2(n t2e >o&al S? Stat(on DI1G STC BIT_>OGC BIT_>OGC %O,E DB_CT+> DB_CT+> DB_CT+> Deter.(ne OB pro)ra. runt(.e Set a +an)e o# Outputs +eset a +an)e o# Outputs Un(nterrupt(<le Blo&= %o-e Create a Data Blo&= (n t2e >oa' %e.or! +ea' #ro. a Data Blo&= (n >oa' %e.or! /r(te #ro. a Data Blo&= (n >oa' %e.or!

DB_FU CT Create a Data Blo&= CO%_FU C D(a)nos(s o# t2e 1&tual Conne&t(on Status 3F_FU CT Control Operat(on (n 3 S!ste.s

SFC 100 SET_C>@S SFC 101 +T% SFC 102 +D_DP1+1 SFC 103 DP_TOPO> SFC 104 CI+ SFC 10" +E1D_SI SFC 100 DE>_SI

C>@_FU C Sett(n) t2e T(.e6o#6Da! an' t2e TOD Status C>@_FU C 3an'l(n) runt(.e .eters IO_FU CT DP +e'e#(ne' Para.eters I'ent(#!(n) t2e <us topolo)! (n a DP .aster s!ste.

PG%_C T> Controll(n) C(+ P%C_FU C +ea'(n) D!na.(& S!ste. +esour&es P%C_FU C Delet(n) D!na.(& S!ste. +esour&es

SFC 10? 1>1+%_D4 P%C_FU C Generat(n) 1lwa!s 1&=nowle')ea<le an' Blo&=6 +elate' %essa)es SFC 10$ 1>1+%_D SFC 112 P _I SFC 113 P _OUT SFC 114 P _DP SFC 120 S; C_PI SFC 12? S; C_PO P%C_FU C Generat(n) 1lwa!s 1&=nowle')ea<le an' Blo&=6 +elate' %essa)es P+OFIne2 P+OFIne2 P+OFIne2 IO_FU CT IO_FU CT Up'ate (nputs (n t2e user pro)ra. (nter#a&e o# P+OFInet &o.ponents Up'ate outputs (n t2e user pro)ra. (nter#a&e o# P+OFInet &o.ponents Up'ate DP (nter&onne&t(ons Up'ate pro&ess (.a)e part(t(on (nput ta<le (n s!n&2ronous &!&le Up'ate pro&ess (.a)e part(t(on output ta<le (n s!n&2ronous &!&le

S5-S7 Converting Blocks Number Name FC 01 FC 02 FC 03 FC 04 FC 0" GP_FPGP GP_GPFP GP_1DD GP_SUB GP_%U> Family Description

S"_C ,+T C2an)e #(9e' po(nt nu.<er to #loat(n) po(nt nu.<er S"_C ,+T C2an)e #loat(n) po(nt nu.<er to #(9e' po(nt nu.<er S"_C ,+T 1'' #loat(n) po(nt nu.<ers S"_C ,+T Su<tra&t #loat(n) po(nt nu.<ers S"_C ,+T %ult(pl! #loat(n) po(nt nu.<er

FC 00 FC 0? FC 0$ FC 0* FC ?0 FC ?1 FC ?2 FC ?3 FC ?4 FC ?" FC ?$ FC ?* FC $0 FC $1 FC $2 FC $3 FC $4 FC $" FC $0 FC $? FC $$ FC $*

GP_DI, GP_,G> +1D_GP %>D_TG %>D_TGC %>D_EC/ %>D_ED/

S"_C ,+T D(-('e #loat(n) po(nt nu.<ers S"_C ,+T Co.pare #loat(n) po(nt nu.<ers S"_C ,+T E9tra&t root o# #loat(n) po(nt nu.<ers S"_C ,+T Clo&= )enerator S"_C ,+T Clo&= )enerator 5t(.(n) ele.ent8 S"_C ,+T %essa)e o# #(rst -alue w(t2 s(n)le #las2(n) l()2t7 wor'w(se7 1 S"_C ,+T %essa)e o# #(rst -alue w(t2 'ou<le #las2(n) l()2t7 wor'w(se7 1

%>D_S1%/ S"_C ,+T Colle&te' .essa)e7 wor'w(se 5soun' alert8 %>D_S1% %>D_EC S"_C ,+T Colle&te' .essa)e7 <(tw(se S"_C ,+T %essa)e o# #(rst -alue w(t2 s(n)le #las2(n) l()2t7 <(tw(se7 1

%>D_ED/@ S"_C ,+T %essa)e o# #(rst -alue w(t2 'ou<le #las2(n) l()2t7 wor'w(se7 1D% %>D_EC@ %>D_ED@ COD_B4 COD_10 %U>_10 DI,_10 1DD_32 SUB_32 %U>_32 DI,_32 +1D_10 S"_C ,+T %essa)e o# #(rst -alue w(t2 s(n)le #las2(n) l()2t7 <(tw(se7 1D% S"_C ,+T %essa)e o# #(rst -alue w(t2 'ou<le #las2(n) l()2t7 <(tw(se7 1D% S"_C ,+T C2an)e BCD nu.<er to 10 <(t 'ual nu.<er S"_C ,+T C2an)e 10 <(t 'ual nu.<er to BCD nu.<er S"_C ,+T %ult(pl! 10 <(t 'ual nu.<ers S"_C ,+T D(-('e 10 <(t 'ual nu.<ers S"_C ,+T 1'' 32 <(t 'ual nu.<ers S"_C ,+T Su<tra&t 32 <(t 'ual nu.<ers S"_C ,+T %ult(pl! 32 <(t 'ual nu.<ers S"_C ,+T D(-('e 32 <(t 'ual nu.<ers S"_C ,+T E9tra&t roots o# 10 <(t 'ual nu.<ers

FC *0 FC *1 FC *2 FC *3 FC *4 FC *" FC *0 FC *? FC *$ FC ** FC 100 FC 101 FC 102 FC 103 FC 104 FC 10" FC 100 FC 10? FC 10$ FC 10* FC 110 FC 111 FC 112 FC 113

+EG_SC3B +EG_SC3/ +EG_FIFO +EG_>IFO DB_COP;1 DB_COP;2 +ETTE >1DE COD_B$ COD_32 1E_400_1 1E_400_2 1E_403_1 1E_403_2 1E_404_1 1E_404_2 1E_400_1 1E_400_2 +>G_111 +>G_112 PE+_ET1 PE+_ET2 SI US COSI US

S"_C ,+T B(6'(re&t(onal s2(#t re)(ster7 <(tw(se S"_C ,+T B(6'(re&t(onal s2(#t re)(ster7 wor'w(se S"_C ,+T Bu##er .e.or! 5FIFO8 S"_C ,+T Sta&= re)(ster 5>IFO8 S"_C ,+T Cop! 'ata <lo&=7 '(re&t ass()n.ent o# para.eters S"_C ,+T Cop! 'ata <lo&=7 (n'(re&t ass()n.ent o# para.eter(Aat(on S"_C ,+T Sa-e s&rat&2pa' .e.or! S"_C ,+T >oa' s&rat&2pa' .e.or! S"_C ,+T C2an)e BCD nu.<er to 32 <(t 'ual nu.<er S"_C ,+T C2an)e 32 <(t 'ual nu.<er to BCD nu.<er S"_C ,+T +ea' analo) -alue S"_C ,+T +ea' analo) -alue S"_C ,+T +ea' analo) -alue S"_C ,+T +ea' analo) -alue S"_C ,+T +ea' analo) -alue S"_C ,+T +ea' analo) -alue S"_C ,+T +ea' analo) -alue S"_C ,+T +ea' analo) -alue S"_C ,+T Output analo) -alue S"_C ,+T Output analo) -alue S"_C ,+T +ea' an' /r(te #or e9ten'e' per(p2er! 5'(re&t ass()n.ent o# para.eters8 S"_C ,+T +ea' an' /r(te #or e9ten'e' per(p2er! 5(n'(re&t ass()n.ent o# para.eters8 S"_C ,+T S(ne 598 S"_C ,+T Cos(ne 598

FC 114 FC 11" FC 110 FC 11? FC 11$ FC 11* FC 120 FC 121 FC 122 FC 123 FC 124 FC 12"

T1 GE S COT1 G 1+CSI 1+CCOS 1+CT1 1+CCOT > _B >G_B B_>OG_B E_3_ CE3 _3_ 12_3_11

S"_C ,+T Tan)ent 598 S"_C ,+T Cotan)ent 598 S"_C ,+T 1r& s(ne 598 S"_C ,+T 1r& &os(ne 598 S"_C ,+T 1r& tan)ent 598 S"_C ,+T 1r& &otan)ens 598 S"_C ,+T atural lo)ar(t2. ln 598

S"_C ,+T De&a'e lo)ar(t2. Io) 598 S"_C ,+T General lo)ar(t2. lo) 598 to <as(s < S"_C ,+T e to t2e power o# n S"_C ,+T 10 to t2e power o# n S"_C ,+T 1@@U 2 to t2e power o# 1@@U 1

IEC Function Blocks Number Name FC 1 FC 2 FC 3 FC 4 FC " FC 0 FC ? FC $ FC * FC 10 FC 11 Family Description Po(nt %at2 1'' 'urat(on to a t(.e Co.<(ne two ST+I G -ar(a<les Co.<(ne D1TE an' TI%E_OF_D1; to DT Delete (n a ST+I G -ar(a<le Data t!pe &on-ers(on DI T to ST+I G E9tra&t t2e D1TE #ro. DT E9tra&t t2e 'a! o# t2e wee= #ro. DT E9tra&t t2e TI%E_OF_D1; #ro. DT Co.pare DT #or e:ual Co.pare ST+I G #or e:ual F(n' (n a ST+I G -ar(a<le

1D_DT_T% IEC CO C1T IEC

D_TOD_DT IEC DE>ETE DI_ST+ G DT_D1TE DT_D1; DT_TOD E4_DT IEC IEC IEC IEC IEC IEC

E4_ST+ G IEC FI D IEC

FC 12 FC 13 FC 14 FC 1" FC 10 FC 1? FC 1$ FC 1* FC 20 FC 21 FC 22 FC 23 FC 24 FC 2" FC 20 FC 2? FC 2$ FC 2* FC 30 FC 31 FC 32 FC 33 FC 34 FC 3" FC 30 FC 3?

GE_DT

IEC

Co.pare DT #or )reater t2an or e:ual Co.pare ST+I G #or )reater t2an or e:ual Co.pare DT #or )reater t2an Co.pare ST+I G #or )reater t2an Data t!pe &on-ers(on I T to ST+I G Insert (n a ST+I G -ar(a<le Co.pare DT #or s.aller t2an or e:ual Co.pare ST+I G #or s.aller t2an or e:ual >e#t part o# a ST+I G -ar(a<le >en)t2 o# a ST+I G -ar(a<le Po(nt %at2 >(.(t Co.pare DT #or s.aller t2an Co.pare ST+I G #or s.aller t2an Po(nt %at2 Sele&t .a9(.u. %(''le part o# a ST+I G -ar(a<le Po(nt %at2 Sele&t .(n(.u. Co.pare DT #or une:ual Co.pare ST+I G #or une:ual Data t!pe &on-ers(on +E1> to ST+I G +epla&e (n a ST+I G -ar(a<le +()2t part o# a ST+I G -ar(a<le Data t!pe &on-ers(on S"TI%E to TI%E Po(nt %at2 Su<tra&t two t(.e -alues Po(nt %at2 Su<tra&t 'urat(on #ro. a t(.e Po(nt %at2 B(nar! sele&t(on Data t!pe &on-ers(on ST+I G to DI T

GE_ST+ G IEC GT_DT IEC

GT_ST+ G IEC I_ST+ G I SE+T >E_DT IEC IEC IEC

>E_ST+ G IEC >EFT >E >I%IT >T_DT IEC IEC IEC IEC

>T_ST+ G IEC %1B %ID %I E_DT IEC IEC IEC IEC

E_ST+ G IEC +_ST+ G +EP>1CE +IG3T S"TI_TI% SB_DT_DT IEC IEC IEC IEC IEC

SB_DT_T% IEC SE> ST+ G_DI IEC IEC

FC 3$ FC 3* FC 40

ST+ G_I ST+ G_+ TI%_S"TI

IEC IEC IEC

Data t!pe &on-ers(on ST+I G to I T Data t!pe &on-ers(on ST+I G to +E1> Data t!pe &on-ers(on TI%E to S"TI%E

PID Control Blocks Number Name FB 41 FB 42 FB 43 FB "$ FB "* CO T_C CO T_S PU>SEGE Family ICO T ICO T ICO T Description Cont(nuous Control Step Control Pulse Generat(on

TCO T_CP CO T+O> Te.perature Cont(nuous Controller TCO T_S CO T+O> Te.perature Step Controller

Communication Blocks Number Name FB 2 FB 3 IDE TIF; +E1D Family CP_300 CP_300 Description For &2e&=(n) 'e-(&e propert(es +ea's 'ata #ro. a 'ata area o# t2e &o..un(&at(on partner spe&(#(e' <! a na.e or (n'e9 'epen'(n) on t2e ass()n.ent o# para.eters #or t2e Eo<F 1llows un&on#(r.e' trans.(ss(on o# -ar(a<les <! an F%S ser-erF allows status (n#or.at(on to <e re:ueste' #ro. t2e &o..un(&at(ons partner on t2e spe&(#(e' F%S &onne&t(onF Trans#ers 'ata #ro. a spe&(#(e' lo&al 'ata area to a 'ata area on t2e &o..un(&at(on partnerF Un&oor'(nate' Sen'(n) o# Data Un&oor'(nate' +e&e(-(n) o# Data Sen'(n) Se).ente' Data

FB 4 FB "

+EPO+T ST1TUS

CP_300 CP_300

FB 0 FB $ FB * FB 12

/+ITE USE D U+C, BSE D

CP_300 CP_300 CP_300 CP_300

FB 13 FB 14 FB 1" FB 20 FB 21 FB 22 FB 23 FB "" FB 03 FB 04 FB 0" FB 00 FB 0? FB 0$ FC 1 FC 2 FC 3 FC 4 FC " FC 0 FC ?

B+C, GET PUT GETIO SETIO GETIO_P1+T SETIO_P1+T IP_CO FIG TSE D T+C, TCO TDISCO TUSE D TU+C, DP_SE D DP_+EC, DP_DI1G DP_CT+> 1G_SE D 1G_+EC, 1G_>OC@

CP_300 CP_300 CP_300

+e&e(-(n) Se).ente' Data +ea' Data #ro. a +e.ote CPU /r(te Data to a +e.ote CPU

IO_FU CT +ea' 1ll Inputs o# a DP Stan'ar' Sla-e/P+OFI ET IO De-(&e IO_FU CT /r(te 1ll Outputs o# a DP Stan'ar' Sla-e/P+OFI ET IO De-(&e IO_FU CT +ea' a Part o# t2e Inputs o# a DP Stan'ar' Sla-e/P+OFI ET IO De-(&e IO_FU CT /r(te a Part o# t2e Outputs o# a DP Stan'ar' Sla-e/P+OFI ET IO De-(&e CP_300 CO%% CO%% CO%% CO%% CO%% CO%% CP_300 CP_300 CP_300 CP_300 CP_300 CP_300 CP_300 Trans#ers a &on#()urat(on 'ata <lo&= 5CO F_DB8 &onta(n(n) &onne&t(on 'ata #or an Et2ernet CPF Sen'(n) Data -(a TCP nat(-e an' ISO on TCP +e&e(-(n) Data -(a TCP nat(-e an' ISO on TCP Esta<l(s2(n) a Conne&t(on us(n) TCP nat(-e an' ISO on TCP Ter.(nat(n) a Conne&t(on us(n) TCP nat(-e an' ISO on TCP Sen'(n) Data -(a UDP +e&e(-(n) Data -(a UDP trans#ers 'ata to t2e P+OFIBUS CP re&e(-es 'ata on P+OFIBUS use' to re:uest '(a)nost(& (n#or.at(on trans#ers &ontrol Eo<s to t2e P+OFIBUS CP 'ata <! .eans o# a &on#()ure' &onne&t(on to t2e &o..un(&at(on partner 5GH 240 <!tes8F 'ata <! .eans o# a &on#()ure' &onne&t(on #ro. t2e &o..un(&at(on partner 5GH 240 <!tes7 not e.a(l8F t2e e9ternal 'ata a&&ess <! .eans o# FETC3//+ITE

5not #or UDP7 e.a(l8F FC $ FC 10 1G_U >OC@ 1G_C T+> CP_300 CP_300 t2e e9ternal 'ata a&&ess <! .eans o# FETC3//+ITE 5not #or UDP7 e.a(l8F allows !ou to '(a)nose &onne&t(onsF /2en ne&essar!7 !ou &an re(n(t(al(Ae &onne&t(on esta<l(s2.ent us(n) t2e FCF use' #or 'ata trans#er (n t2e CP .o'es P+OFI ET IO &ontroller or P+OFI ET IO 'e-(&eF use' to re&e(-e 'ata (n t2e CP .o'es P+OFI ET IO &ontroller or P+OFI ET IO 'e-(&eF Esta<l(s2 an FTP &onne&t(on Store a #(le on t2e FTP ser-er +etr(e-e a #(le #ro. t2e FTP ser-er Delete a #(le on t2e FTP ser-er Ena<le an FTP &onne&t(on 'ata <! .eans o# a &on#()ure' &onne&t(on to t2e &o..un(&at(on partnerF 'ata <! .eans o# a &on#()ure' &onne&t(on #ro. t2e &o..un(&at(on partner 5not e.a(l8F 4uer! a &onne&t(on status #or S?6300

FC 11

P IO_SE D

CP_300

FC 12 FC 40 FC 41 FC 42 FC 43 FC 44 FC "0 FC 00 FC 02

P IO_+EC, FTP_CO

CP_300

ECT CP_300 CP_300

FTP_STO+E

FTP_+ET+IE,E CP_300 FTP_DE>ETE FTP_4UIT 1G_>SE D 1G_>+EC, C_C T+> CP_300 CP_300 CP_300 CP_300 CP_300

I-S7 Converting Blocks Number Name FB $0 FB $1 FB $2 FB $3 FB $4 Family Description

>E1D_>1G CO ,E+T >ea'/>a) 1l)or(t2. DC1T %C1T I%C S%C TI%E+S TI%E+S D(s&rete Control 1lar. T(.er %otor Control 1lar. T(.er

CO%P1+E In'e9 %atr(9 Co.pare CO%P1+E S&an %atr(9 Co.pare

FB $" FB $0 FC $0 FC $1 FC $2 FC $3 FC $4 FC $" FC $0 FC $? FC $$ FC $* FC *0 FC *1 FC *2 FC *3 FC *4 FC *" FC *0 FC *? FC *$ FC ** FC 100 FC 101 FC 102 FC 103

D+U% P1C@ TO + IB>@%O, +SET SET 1TT FIFO TB>_FI D >IFO TB> TB>_/+D /S+ /+D_TB> S3+B SEG 1T3 3T1 E CO DECO BCDCP> BITSU% +SETI SETI DE, CDT

TI%E+S %O,E TI%E+S %O,E

E-ent %as=a<le Dru. Pa&= Data So#tware T(.er On Dela!I+etent(-e In'(re&t Blo&= %o-e

BIT_>OGC +eset +an)e o# Outputs BIT_>OGC Set +an)e o# Outputs T1B>E T1B>E T1B>E T1B>E T1B>E T1B>E S3IFT T1B>E S3IFT 1'' to Ta<le F(rst In/F(rst Out Unloa' Ta<le Ta<le F(n' >ast In/F(rst Out Unloa' Ta<le Ta<le %o-e Ta<le to /or' /or' S2(#t +e)(ster /or' to Ta<le B(t S2(#t +e)(ster

CO ,E+T Se-en Se).ent De&o'er CO ,E+T 1SCII to 3e9 CO ,E+T 3e9 to 1SCII CO ,E+T En&o'e B(nar! Pos(t(on CO ,E+T De&o'e B(nar! Pos(t(on CO ,E+T TenJs Co.ple.ent CO ,E+T Su. u.<er o# B(ts BIT_>OGC +eset +an)e o# I..e'(ate Outputs BIT_>OGC Set +an)e o# I..e'(ate Outputs %1T3_FP Stan'ar' De-(at(on T1B>E Correlate' Data Ta<le

FC 104 FC 10" FC 100

TB>_TB> SC1>E U SC1>E

T1B>E

Ta<le to Ta<le

CO ,E+T S&al(n) ,alues CO ,E+T Uns&al(n) ,alues

!iscellaneous Blocks Number Name FB 00 SET_S/ Family Description

TI%EFU C supports t2e su..ert(.e/w(ntert(.e &2an)eo-er (n CPUs t2at 'o not 2a-e t2e t(.e statusF For t2(s purpose (t sets t2e CPU &lo&= to t2e &urrent t(.e an' a&&or'(n) to t2e &2an)eo-er rules (n t2e Control DBF

FB 01

SET_S/_S TI%EFU C supports t2e su..ert(.e/w(ntert(.e &2an)eo-er (n CPUs t2at 'o 2a-e t2e t(.e statusF For t2(s purpose (t sets t2e t(.e status to t2e &urrent t(.e an' a&&or'(n) to t2e &2an)eo-er rules (n t2e Control DBF TI%EST%P TI%EFU C trans#ers t2e t(.e6sta.pe' .essa)es o# an I%1"362 (nto (ts (nstan&e DBF >OC_TI%E TI%EFU C rea's t2e t(.e status or t(.e o# t2e CPU an' &al&ulates t2e lo&al t(.eF It (s t2ere#ore onl! use#ul on CPUs w(t2 t(.e statusF BT_>T >T_BT S_>TI T TI%EFU C &al&ulates t2e lo&al t(.e #ro. t2e <ase t(.e )(-en at t2e (nputF TI%EFU C &al&ulates t2e <ase t(.e #ro. t2e lo&al t(.e )(-en at t2e (nputF TI%EFU C sets t2e re:u(re' t(.e (nterrupt to t2e preset t(.eF T2(s t(.e (s )(-en (n lo&al t(.eF

FB 02 FC 00

FC 01 FC 02 FC 03

Вам также может понравиться