You are on page 1of 16

System Function Blocks

Number Name Family Description


SFB 0 CTU IEC_TC Count Up
SFB 1 CTD IEC_TC Count Down
SFB 2 CTUD IEC_TC Count Up/Down
SFB 3 TP IEC_TC Generate a Pulse
SFB 4 TO IEC_TC Generate an On Dela!
SFB " TOF IEC_TC Generate an O## Dela!
SFB $ USED CO%_FUC Un&oor'(nate' Sen'(n) o# Data
SFB * U+C, CO%_FUC Un&oor'(nate' +e&e(-(n) o# Data
SFB 12 BSED CO%_FUC Sen'(n) Se).ente' Data
SFB 13 B+C, CO%_FUC +e&e(-(n) Se).ente' Data
SFB 14 GET CO%_FUC +ea' Data #ro. a +e.ote CPU
SFB 1" PUT CO%_FUC /r(te Data to a +e.ote CPU
SFB 10 P+IT CO%_FUC Sen' Data to Pr(nter
SFB 1* ST1+T CO%_FUC In(t(ate a /ar. or Col' +estart on a +e.ote De-(&e
SFB 20 STOP CO%_FUC C2an)(n) a +e.ote De-(&e to t2e STOP State
SFB 21 +ESU%E CO%_FUC In(t(ate a 3ot +estart on a +e.ote De-(&e
SFB 22 ST1TUS CO%_FUC 4uer! t2e Status o# a +e.ote Partner
SFB 23 UST1TUS CO%_FUC +e&e(-e t2e Status o# a +e.ote De-(&e
SFB 2* 3S_COUT COUTE+S Counter 52()26spee' &ounter7 (nte)rate' #un&t(on8 5onl!
e9(st on t2e CPU 312 IF% an' CPU 314 IF%8
SFB 30 F+E4_%ES COUTE+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
SFB 31 OTIF;_$P CO%_FUC Generat(n) <lo&= relate' .essa)es w(t2out
a&=nowle')e.ent (n'(&at(on
SFB 32 D+U% TI%E+S I.ple.ent a Se:uen&er
SFB 33 1>1+% CO%_FUC Generate Blo&=6+elate' %essa)es w(t2
1&=nowle').ent D(spla!
SFB 34 1>1+%_$ CO%_FUC Generate Blo&=6+elate' %essa)es w(t2out ,alues #or $
S()nals
SFB 3" 1>1+%_$P CO%_FUC Generate Blo&=6+elate' %essa)es w(t2 ,alues #or $
S()nals
SFB 30 OTIF; CO%_FUC Generate Blo&=6+elate' %essa)es w(t2out
1&=nowle').ent D(spla!
SFB 3? 1+_SED CO%_FUC Sen' 1r&2(-e Data
SFB 3$ 3SC_1_B COUTE+S Counter 1/B 5(nte)rate' #un&t(on8 5onl! e9(st on t2e
CPU 314 IF%8
SFB 3* POS ICOT Pos(t(on 5(nte)rate' #un&t(on8 5onl! e9(st on t2e CPU
314 IF%8
SFB 41 COT_C ICOT Cont(nuous Control 5onl! e9(st on t2e CPU 314 IF%8
SFB 42 COT_S ICOT Step Control 5onl! e9(st on t2e CPU 314 IF%8
SFB 43 PU>SEGE ICOT Pulse Generat(on 5onl! e9(st on t2e CPU 314 IF%8
SFB 44 11>OG TEC_FUC Pos(t(on(n) w(t2 1nalo) Output 5onl! e9(st on t2e S?6
300C CPUs8
SFB 40 DIGIT1> TEC_FUC Pos(t(on(n) w(t2 D()(tal Output 5onl! e9(st on t2e S?6
300C CPUs8
SFB 4? COUT TEC_FUC Controll(n) t2e Counter 5onl! e9(st on t2e S?6300C
CPUs8
SFB 4$ F+E4UEC TEC_FUC Controll(n) t2e Fre:uen&! %easure.ent 5onl! e9(st on
t2e S?6300C CPUs8
SFB 4* PU>SE TEC_FUC Controll(n) Pulse /('t2 %o'ulat(on 5onl! e9(st on t2e
S?6300C CPUs8
SFB "2 +D+EC DP +ea'(n) a Data +e&or'
SFB "3 /++EC DP /r(t(n) a Data +e&or'
SFB "4 +1>+% DP +e&e(-(n) an Interrupt
SFB 00 SED_PTP TEC_FUC Sen'(n) Data 51SCII7 3*045+88 5onl! e9(st on t2e S?6
300C CPUs8
SFB 01 +EC,_PTP TEC_FUC +e&e(-(n) Data 51SCII7 3*045+88 5onl! e9(st on t2e S?6
300C CPUs8
SFB 02 +ES_+EC, TEC_FUC Delet(n) t2e +e&e(-e Bu##er 51SCII7 3*045+88 5onl!
e9(st on t2e S?6300C CPUs8
SFB 03 SED_+@ TEC_FUC Sen'(n) Data 5+@ "128 5onl! e9(st on t2e S?6300C
CPUs8
SFB 04 FETC3_+@ TEC_FUC Fet&2(n) Data 5+@ "128 5onl! e9(st on t2e S?6300C
CPUs8
SFB 0" SE+,E_+@ TEC_FUC +e&e(-(n) an' Pro-('(n) Data 5+@ "128 5onl! e9(st on
t2e S?6300C CPUs8
SFB ?" S1>+% DP Sen' (nterrupt to DP .aster
SFB $1 +D_DP1+ IO_FUCT +ea' Pre'e#(ne' Para.eter
System Function Calls
Number Name Family Description
SFC 0 SET_C>@ C>@_FUC Set S!ste. Clo&=
SFC 1 +E1D_C>@ C>@_FUC +ea' S!ste. Clo&=
SFC 2 SET_+T% C>@_FUC Set +un6t(.e %eter
SFC 3 CT+>_+T% C>@_FUC Start/Stop +un6t(.e %eter
SFC 4 +E1D_+T% C>@_FUC +ea' +un6t(.e %eter
SFC " G1D+_>GC IO_FUCT 4uer! >o)(&al 1''ress o# a C2annel
SFC 0 +D_SIFO DB_FUCT +ea' OB Start In#or.at(on
SFC ? DP_P+1> DP Tr())er a 3ar'ware Interrupt on t2e DP %aster
SFC * E_%SG CO%_FUC Ena<le Blo&=6+elate'7 S!.<ol6+elate' an' Group
Status %essa)es
SFC 10 DIS_%SG CO%_FUC D(sa<le Blo&=6+elate'7 S!.<ol6+elate' an' Group
Status %essa)es
SFC 11 DPS;C_F+ DP S!n&2ron(Ae Groups o# DP Sla-es
SFC 12 D_1CT_DP DP Dea&t(-at(on an' a&t(-at(on o# DP sla-es
SFC 13 DP+%_DG DI1GSTC +ea' D(a)nost(& Data o# a DP Sla-e 5Sla-e
D(a)nost(&s8
SFC 14 DP+D_D1T DP +ea' Cons(stent Data o# a Stan'ar' DP Sla-e
SFC 1" DP/+_D1T DP /r(te Cons(stent Data to a DP Stan'ar' Sla-e
SFC 1? 1>1+%_S4 P%C_FUC Generate 1&=nowle')ea<le Blo&=6+elate' %essa)es
SFC 1$ 1>1+%_S P%C_FUC Generate Per.anentl! 1&=nowle')e' Blo&=6+elate'
%essa)es
SFC 1* 1>1+%_SC P%C_FUC 4uer! t2e 1&=nowle').ent Status o# t2e last
1>1+%_S4 Enter(n) State %essa)e
SFC 20 B>@%O, %O,E Cop! ,ar(a<les
SFC 21 FI>> %O,E In(t(al(Ae a %e.or! 1rea
SFC 22 C+E1T_DB DB_FUCT Create Data Blo&=
SFC 23 DE>_DB DB_FUCT Delete Data Blo&=
SFC 24 TEST_DB DB_FUCT Test Data Blo&=
SFC 2" CO%P+ESS DB_FUCT Co.press t2e User %e.or!
SFC 20 UPD1T_PI IO_FUCT Up'ate t2e Pro&ess I.a)e Up'ate Ta<le
SFC 2? UPD1T_PO IO_FUCT Up'ate t2e Pro&ess I.a)e Output Ta<le
SFC 2$ SET_TIT PG%_CT> Set T(.e6o#6Da! Interrupt
SFC 2* C1_TIT PG%_CT> Can&el T(.e6o#6Da! Interrupt
SFC 30 1CT_TIT PG%_CT> 1&t(-ate T(.e6o#6Da! Interrupt
SFC 31 4+;_TIT PG%_CT> 4uer! T(.e6o#6Da! Interrupt
SFC 32 S+T_DIT PG%_CT> Start T(.e6Dela! Interrupt
SFC 33 C1_DIT PG%_CT> Can&el T(.e6Dela! Interrupt
SFC 34 4+;_DIT PG%_CT> 4uer! T(.e6Dela! Interrupt
SFC 3" %P_1>% PG%_CT> Tr())er %ult(&o.put(n) Interrupt
SFC 30 %S@_F>T DI1GSTC %as= S!n&2ronous Errors
SFC 3? D%S@_F>T DI1GSTC Un.as= S!n&2ronous Errors
SFC 3$ +E1D_E++ DI1GSTC +ea' Error +e)(ster
SFC 3* DIS_I+T I+T_FUC D(sa<le ew Interrupts an' 1s!n&2ronous Errors
SFC 40 E_I+T I+T_FUC Ena<le ew Interrupts an' 1s!n&2ronous Errors
SFC 41 DIS_1I+T I+T_FUC Dela! 3()2er Pr(or(t! Interrupts an' 1s!n&2ronous
Errors
SFC 42 E_1I+T I+T_FUC Ena<le 3()2er Pr(or(t! Interrupts an' 1s!n&2ronous
Errors
SFC 43 +E_T+IG+ PG%_CT> +e6tr())er C!&le T(.e %on(tor(n)
SFC 44 +EP>_,1> DI1GSTC Trans#er Su<st(tute ,alue to 1&&u.ulator 1
SFC 40 STP PG%_CT> C2an)e t2e CPU to STOP
SFC 4? /1IT PG%_CT> Dela! E9e&ut(on o# t2e User Pro)ra.
SFC 4$ SC_+TCB C>@_FUC S!n&2ron(Ae Sla-e Clo&=s
SFC 4* >GC_G1D+ IO_FUCT 4uer! t2e %o'ule Slot Belon)(n) to a >o)(&al 1''ress
SFC "0 +D_>G1D+ IO_FUCT 4uer! all >o)(&al 1''resses o# a %o'ule
SFC "1 +DS;SST DI1GSTC +ea' a S!ste. Status >(st or Part(al >(st
SFC "2 /+_US%SG DI1GSTC /r(te a User6De#(ne' D(a)nost(& E-ent to t2e
D(a)nost(& Bu##er
SFC "4 +D_P1+% IO_FUCT +ea' De#(ne' Para.eters
SFC "" /+_P1+% IO_FUCT /r(te D!na.(& Para.eters
SFC "0 /+_DP1+% IO_FUCT /r(te De#ault Para.eters
SFC "? P1+%_%OD IO_FUCT 1ss()n Para.eters to a %o'ule
SFC "$ /+_+EC IO_FUCT /r(te a Data +e&or'
SFC "* +D_+EC IO_FUCT +ea' a Data +e&or'
SFC 00 GD_SD CO%_FUC Sen' a GD Pa&=et
SFC 01 GD_+C, CO%_FUC Fet&2 a +e&e(-e' GD Pa&=et
SFC 02 COT+O> CO%_FUC 4uer! t2e Status o# a Conne&t(on Belon)(n) to a
Co..un(&at(on SFB Instan&e
SFC 03 1B_C1>> P>1STICS 1sse.<l! Co'e Blo&= 5onl! e9(sts #or CPU 0148
SFC 04 TI%E_TC@ C>@_FUC +ea' t2e S!ste. T(.e
SFC 0" B_SED CO%_FUC Sen' Data to a Co..un(&at(on Partner outs('e t2e
>o&al S? Stat(on
SFC 00 B_+C, CO%_FUC +e&e(-e Data #ro. a Co..un(&at(on Partner outs('e
t2e >o&al S? Stat(on
SFC 0? B_GET CO%_FUC +ea' Data #ro. a Co..un(&at(on Partner outs('e t2e
>o&al S? Stat(on
SFC 0$ B_PUT CO%_FUC /r(te Data to a Co..un(&at(on Partner outs('e t2e
>o&al S? Stat(on
SFC 0* B_1BO+T CO%_FUC 1<ort an E9(st(n) Conne&t(on to a Co..un(&at(on
Partner outs('e t2e >o&al S? Stat(on
SFC ?0 GEO_>OG IO_FUCT Deter.(ne Start 1''ress o# a %o'ule
SFC ?1 >OG_GEO IO_FUCT Deter.(ne t2e Slot Belon)(n) to a >o)(&al 1''ress
SFC ?2 I_GET CO%_FUC +ea' Data #ro. a Co..un(&at(on Partner w(t2(n t2e
>o&al S? Stat(on
SFC ?3 I_PUT CO%_FUC /r(te Data to a Co..un(&at(on Partner w(t2(n t2e
>o&al S? Stat(on
SFC ?4 I_1BO+T CO%_FUC 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
SFC ?$ OB_+T DI1GSTC Deter.(ne OB pro)ra. runt(.e
SFC ?* SET BIT_>OGC Set a +an)e o# Outputs
SFC $0 +SET BIT_>OGC +eset a +an)e o# Outputs
SFC $1 UB>@%O, %O,E Un(nterrupt(<le Blo&= %o-e
SFC $2 C+E1_DB> DB_CT+> Create a Data Blo&= (n t2e >oa' %e.or!
SFC $3 +E1D_DB> DB_CT+> +ea' #ro. a Data Blo&= (n >oa' %e.or!
SFC $4 /+IT_DB> DB_CT+> /r(te #ro. a Data Blo&= (n >oa' %e.or!
SFC $" C+E1_DB DB_FUCT Create a Data Blo&=
SFC $? C_DI1G CO%_FUC D(a)nos(s o# t2e 1&tual Conne&t(on Status
SFC *0 3_CT+> 3F_FUCT Control Operat(on (n 3 S!ste.s
SFC 100 SET_C>@S C>@_FUC Sett(n) t2e T(.e6o#6Da! an' t2e TOD Status
SFC 101 +T% C>@_FUC 3an'l(n) runt(.e .eters
SFC 102 +D_DP1+1 IO_FUCT +e'e#(ne' Para.eters
SFC 103 DP_TOPO> DP I'ent(#!(n) t2e <us topolo)! (n a DP .aster s!ste.
SFC 104 CI+ PG%_CT> Controll(n) C(+
SFC 10" +E1D_SI P%C_FUC +ea'(n) D!na.(& S!ste. +esour&es
SFC 100 DE>_SI P%C_FUC Delet(n) D!na.(& S!ste. +esour&es
SFC 10? 1>1+%_D4 P%C_FUC Generat(n) 1lwa!s 1&=nowle')ea<le an' Blo&=6
+elate' %essa)es
SFC 10$ 1>1+%_D P%C_FUC Generat(n) 1lwa!s 1&=nowle')ea<le an' Blo&=6
+elate' %essa)es
SFC 112 P_I P+OFIne2 Up'ate (nputs (n t2e user pro)ra. (nter#a&e o#
P+OFInet &o.ponents
SFC 113 P_OUT P+OFIne2 Up'ate outputs (n t2e user pro)ra. (nter#a&e o#
P+OFInet &o.ponents
SFC 114 P_DP P+OFIne2 Up'ate DP (nter&onne&t(ons
SFC 120 S;C_PI IO_FUCT Up'ate pro&ess (.a)e part(t(on (nput ta<le (n
s!n&2ronous &!&le
SFC 12? S;C_PO IO_FUCT Up'ate pro&ess (.a)e part(t(on output ta<le (n
s!n&2ronous &!&le
S5-S7 Converting Blocks
Number Name Family Description
FC 01 GP_FPGP S"_C,+T C2an)e #(9e' po(nt nu.<er to #loat(n) po(nt nu.<er
FC 02 GP_GPFP S"_C,+T C2an)e #loat(n) po(nt nu.<er to #(9e' po(nt nu.<er
FC 03 GP_1DD S"_C,+T 1'' #loat(n) po(nt nu.<ers
FC 04 GP_SUB S"_C,+T Su<tra&t #loat(n) po(nt nu.<ers
FC 0" GP_%U> S"_C,+T %ult(pl! #loat(n) po(nt nu.<er
FC 00 GP_DI, S"_C,+T D(-('e #loat(n) po(nt nu.<ers
FC 0? GP_,G> S"_C,+T Co.pare #loat(n) po(nt nu.<ers
FC 0$ +1D_GP S"_C,+T E9tra&t root o# #loat(n) po(nt nu.<ers
FC 0* %>D_TG S"_C,+T Clo&= )enerator
FC ?0 %>D_TGC S"_C,+T Clo&= )enerator 5t(.(n) ele.ent8
FC ?1 %>D_EC/ S"_C,+T %essa)e o# #(rst -alue w(t2 s(n)le #las2(n) l()2t7
wor'w(se7 1
FC ?2 %>D_ED/ S"_C,+T %essa)e o# #(rst -alue w(t2 'ou<le #las2(n) l()2t7
wor'w(se7 1
FC ?3 %>D_S1%/ S"_C,+T Colle&te' .essa)e7 wor'w(se 5soun' alert8
FC ?4 %>D_S1% S"_C,+T Colle&te' .essa)e7 <(tw(se
FC ?" %>D_EC S"_C,+T %essa)e o# #(rst -alue w(t2 s(n)le #las2(n) l()2t7 <(tw(se7
1
FC ?$ %>D_ED/@ S"_C,+T %essa)e o# #(rst -alue w(t2 'ou<le #las2(n) l()2t7
wor'w(se7 1D%
FC ?* %>D_EC@ S"_C,+T %essa)e o# #(rst -alue w(t2 s(n)le #las2(n) l()2t7 <(tw(se7
1D%
FC $0 %>D_ED@ S"_C,+T %essa)e
o# #(rst -alue w(t2 'ou<le #las2(n) l()2t7 <(tw(se7 1D%
FC $1 COD_B4 S"_C,+T C2an)e BCD nu.<er to 10 <(t 'ual nu.<er
FC $2 COD_10 S"_C,+T C2an)e 10 <(t 'ual nu.<er to BCD nu.<er
FC $3 %U>_10 S"_C,+T %ult(pl! 10 <(t 'ual nu.<ers
FC $4 DI,_10 S"_C,+T D(-('e 10 <(t 'ual nu.<ers
FC $" 1DD_32 S"_C,+T 1'' 32 <(t 'ual nu.<ers
FC $0 SUB_32 S"_C,+T Su<tra&t 32 <(t 'ual nu.<ers
FC $? %U>_32 S"_C,+T %ult(pl! 32 <(t 'ual nu.<ers
FC $$ DI,_32 S"_C,+T D(-('e 32 <(t 'ual nu.<ers
FC $* +1D_10 S"_C,+T E9tra&t roots o# 10 <(t 'ual nu.<ers
FC *0 +EG_SC3B S"_C,+T B(6'(re&t(onal s2(#t re)(ster7 <(tw(se
FC *1 +EG_SC3/ S"_C,+T B(6'(re&t(onal s2(#t re)(ster7 wor'w(se
FC *2 +EG_FIFO S"_C,+T Bu##er .e.or! 5FIFO8
FC *3 +EG_>IFO S"_C,+T Sta&= re)(ster 5>IFO8
FC *4 DB_COP;1 S"_C,+T Cop! 'ata <lo&=7 '(re&t ass()n.ent o# para.eters
FC *" DB_COP;2 S"_C,+T Cop! 'ata <lo&=7 (n'(re&t ass()n.ent o#
para.eter(Aat(on
FC *0 +ETTE S"_C,+T Sa-e s&rat&2pa' .e.or!
FC *? >1DE S"_C,+T >oa' s&rat&2pa' .e.or!
FC *$ COD_B$ S"_C,+T C2an)e BCD nu.<er to 32 <(t 'ual nu.<er
FC ** COD_32 S"_C,+T C2an)e 32 <(t 'ual nu.<er to BCD nu.<er
FC 100 1E_400_1 S"_C,+T +ea' analo) -alue
FC 101 1E_400_2 S"_C,+T +ea' analo) -alue
FC 102 1E_403_1 S"_C,+T +ea' analo) -alue
FC 103 1E_403_2 S"_C,+T +ea' analo) -alue
FC 104 1E_404_1 S"_C,+T +ea' analo) -alue
FC 10" 1E_404_2 S"_C,+T +ea' analo) -alue
FC 100 1E_400_1 S"_C,+T +ea' analo) -alue
FC 10? 1E_400_2 S"_C,+T +ea' analo) -alue
FC 10$ +>G_111 S"_C,+T Output analo) -alue
FC 10* +>G_112 S"_C,+T Output analo) -alue
FC 110 PE+_ET1 S"_C,+T +ea' an' /r(te #or e9ten'e' per(p2er! 5'(re&t
ass()n.ent o# para.eters8
FC 111 PE+_ET2 S"_C,+T +ea' an' /r(te #or e9ten'e' per(p2er! 5(n'(re&t
ass()n.ent o# para.eters8
FC 112 SIUS S"_C,+T S(ne 598
FC 113 COSIUS S"_C,+T Cos(ne 598
FC 114 T1GES S"_C,+T Tan)ent 598
FC 11" COT1G S"_C,+T Cotan)ent 598
FC 110 1+CSI S"_C,+T 1r& s(ne 598
FC 11? 1+CCOS S"_C,+T 1r& &os(ne 598
FC 11$ 1+CT1 S"_C,+T 1r& tan)ent 598
FC 11* 1+CCOT S"_C,+T 1r& &otan)ens 598
FC 120 >_B S"_C,+T atural lo)ar(t2. ln 598
FC 121 >G_B S"_C,+T De&a'e lo)ar(t2. Io) 598
FC 122 B_>OG_B S"_C,+T General lo)ar(t2. lo) 598 to <as(s <
FC 123 E_3_ S"_C,+T e to t2e power o# n
FC 124 CE3_3_ S"_C,+T 10 to t2e power o# n
FC 12" 12_3_11 S"_C,+T 1@@U 2 to t2e power o# 1@@U 1
IEC Function Blocks
Number Name Family Description
FC 1 1D_DT_T% IEC Po(nt %at2 1'' 'urat(on to a t(.e
FC 2 COC1T IEC Co.<(ne two ST+IG -ar(a<les
FC 3 D_TOD_DT IEC Co.<(ne D1TE an' TI%E_OF_D1; to DT
FC 4 DE>ETE IEC Delete (n a ST+IG -ar(a<le
FC " DI_ST+G IEC Data t!pe &on-ers(on DIT to ST+IG
FC 0 DT_D1TE IEC E9tra&t t2e D1TE #ro. DT
FC ? DT_D1; IEC E9tra&t t2e 'a! o# t2e wee= #ro. DT
FC $ DT_TOD IEC E9tra&t t2e TI%E_OF_D1; #ro. DT
FC * E4_DT IEC Co.pare DT #or e:ual
FC 10 E4_ST+G IEC Co.pare ST+IG #or e:ual
FC 11 FID IEC F(n' (n a ST+IG -ar(a<le
FC 12 GE_DT IEC Co.pare DT #or )reater t2an or e:ual
FC 13 GE_ST+G IEC Co.pare ST+IG #or )reater t2an or e:ual
FC 14 GT_DT IEC Co.pare DT #or )reater t2an
FC 1" GT_ST+G IEC Co.pare ST+IG #or )reater t2an
FC 10 I_ST+G IEC Data t!pe &on-ers(on IT to ST+IG
FC 1? ISE+T IEC Insert (n a ST+IG -ar(a<le
FC 1$ >E_DT IEC Co.pare DT #or s.aller t2an or e:ual
FC 1* >E_ST+G IEC Co.pare ST+IG #or s.aller t2an or e:ual
FC 20 >EFT IEC >e#t part o# a ST+IG -ar(a<le
FC 21 >E IEC >en)t2 o# a ST+IG -ar(a<le
FC 22 >I%IT IEC Po(nt %at2 >(.(t
FC 23 >T_DT IEC Co.pare DT #or s.aller t2an
FC 24 >T_ST+G IEC Co.pare ST+IG #or s.aller t2an
FC 2" %1B IEC Po(nt %at2 Sele&t .a9(.u.
FC 20 %ID IEC %(''le part o# a ST+IG -ar(a<le
FC 2? %I IEC Po(nt %at2 Sele&t .(n(.u.
FC 2$ E_DT IEC Co.pare DT #or une:ual
FC 2* E_ST+G IEC Co.pare ST+IG #or une:ual
FC 30 +_ST+G IEC Data t!pe &on-ers(on +E1> to ST+IG
FC 31 +EP>1CE IEC +epla&e (n a ST+IG -ar(a<le
FC 32 +IG3T IEC +()2t part o# a ST+IG -ar(a<le
FC 33 S"TI_TI% IEC Data t!pe &on-ers(on S"TI%E to TI%E
FC 34 SB_DT_DT IEC Po(nt %at2 Su<tra&t two t(.e -alues
FC 3" SB_DT_T% IEC Po(nt %at2 Su<tra&t 'urat(on #ro. a t(.e
FC 30 SE> IEC Po(nt %at2 B(nar! sele&t(on
FC 3? ST+G_DI IEC Data t!pe &on-ers(on ST+IG to DIT
FC 3$ ST+G_I IEC Data t!pe &on-ers(on ST+IG to IT
FC 3* ST+G_+ IEC Data t!pe &on-ers(on ST+IG to +E1>
FC 40 TI%_S"TI IEC Data t!pe &on-ers(on TI%E to S"TI%E
PID Control Blocks
Number Name Family Description
FB 41 COT_C ICOT Cont(nuous Control
FB 42 COT_S ICOT Step Control
FB 43 PU>SEGE ICOT Pulse Generat(on
FB "$ TCOT_CP COT+O> Te.perature Cont(nuous Controller
FB "* TCOT_S COT+O> Te.perature Step Controller
Communication Blocks
Number Name Family Description
FB 2 IDETIF; CP_300 For &2e&=(n) 'e-(&e
propert(es
FB 3 +E1D CP_300 +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
FB 4 +EPO+T CP_300 1llows un&on#(r.e' trans.(ss(on o# -ar(a<les <! an
F%S ser-erF
FB " ST1TUS CP_300 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
FB 0 /+ITE CP_300 Trans#ers 'ata #ro. a spe&(#(e' lo&al 'ata area to a
'ata area on t2e &o..un(&at(on partnerF
FB $ USED CP_300 Un&oor'(nate' Sen'(n) o# Data
FB * U+C, CP_300 Un&oor'(nate' +e&e(-(n) o# Data
FB 12 BSED CP_300 Sen'(n) Se).ente' Data
FB 13 B+C, CP_300 +e&e(-(n) Se).ente' Data
FB 14 GET CP_300 +ea' Data #ro. a +e.ote CPU
FB 1" PUT CP_300 /r(te Data to a +e.ote CPU
FB 20 GETIO IO_FUCT +ea' 1ll Inputs o# a DP Stan'ar' Sla-e/P+OFIET
IO De-(&e
FB 21 SETIO IO_FUCT /r(te 1ll Outputs o# a DP Stan'ar'
Sla-e/P+OFIET IO De-(&e
FB 22 GETIO_P1+T IO_FUCT +ea' a Part o# t2e Inputs o# a DP Stan'ar'
Sla-e/P+OFIET IO De-(&e
FB 23 SETIO_P1+T IO_FUCT /r(te a Part o# t2e Outputs o# a DP Stan'ar'
Sla-e/P+OFIET IO De-(&e
FB "" IP_COFIG CP_300 Trans#ers a &on#()urat(on 'ata <lo&= 5COF_DB8
&onta(n(n) &onne&t(on 'ata #or an Et2ernet CPF
FB 03 TSED CO%% Sen'(n) Data -(a TCP nat(-e an' ISO on TCP
FB 04 T+C, CO%% +e&e(-(n) Data -(a TCP nat(-e an' ISO on TCP
FB 0" TCO CO%% Esta<l(s2(n) a Conne&t(on us(n) TCP nat(-e an' ISO
on TCP
FB 00 TDISCO CO%% Ter.(nat(n) a Conne&t(on us(n) TCP nat(-e an' ISO
on TCP
FB 0? TUSED CO%% Sen'(n) Data -(a UDP
FB 0$ TU+C, CO%% +e&e(-(n) Data -(a UDP
FC 1 DP_SED CP_300 trans#ers 'ata to t2e P+OFIBUS CP
FC 2 DP_+EC, CP_300 re&e(-es 'ata on P+OFIBUS
FC 3 DP_DI1G CP_300 use' to re:uest '(a)nost(& (n#or.at(on
FC 4 DP_CT+> CP_300 trans#ers &ontrol Eo<s to t2e P+OFIBUS CP
FC " 1G_SED CP_300 'ata <! .eans o# a &on#()ure' &onne&t(on to t2e
&o..un(&at(on partner 5GH 240 <!tes8F
FC 0 1G_+EC, CP_300 'ata <! .eans o# a &on#()ure' &onne&t(on #ro. t2e
&o..un(&at(on partner 5GH 240 <!tes7 not e.a(l8F
FC ? 1G_>OC@ CP_300 t2e e9ternal 'ata a&&ess <! .eans o# FETC3//+ITE
5not #or UDP7 e.a(l8F
FC $ 1G_U>OC@ CP_300 t2e e9ternal 'ata a&&ess <! .eans o# FETC3//+ITE
5not #or UDP7 e.a(l8F
FC 10 1G_CT+> CP_300 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
FC 11 PIO_SED CP_300 use' #or 'ata trans#er (n
t2e CP .o'es P+OFIET IO &ontroller or
P+OFIET IO 'e-(&eF
FC 12 PIO_+EC, CP_300 use' to re&e(-e 'ata (n t2e CP .o'es P+OFIET IO
&ontroller or P+OFIET IO 'e-(&eF
FC 40 FTP_COECT CP_300 Esta<l(s2 an FTP &onne&t(on
FC 41 FTP_STO+E CP_300 Store a #(le on t2e FTP ser-er
FC 42 FTP_+ET+IE,E CP_300 +etr(e-e a #(le #ro. t2e FTP ser-er
FC 43 FTP_DE>ETE CP_300 Delete a #(le on t2e FTP ser-er
FC 44 FTP_4UIT CP_300 Ena<le an FTP &onne&t(on
FC "0 1G_>SED CP_300 'ata <! .eans o# a &on#()ure' &onne&t(on to t2e
&o..un(&at(on partnerF
FC 00 1G_>+EC, CP_300 'ata <! .eans o# a &on#()ure' &onne&t(on #ro. t2e
&o..un(&at(on partner 5not e.a(l8F
FC 02 C_CT+> CP_300 4uer! a &onne&t(on status #or S?6300
I-S7 Converting Blocks
Number Name Family Description
FB $0 >E1D_>1G CO,E+T >ea'/>a) 1l)or(t2.
FB $1 DC1T TI%E+S D(s&rete Control 1lar. T(.er
FB $2 %C1T TI%E+S %otor Control 1lar. T(.er
FB $3 I%C CO%P1+E In'e9 %atr(9 Co.pare
FB $4 S%C CO%P1+E S&an %atr(9 Co.pare
FB $" D+U% TI%E+S E-ent %as=a<le Dru.
FB $0 P1C@ %O,E Pa&= Data
FC $0 TO+ TI%E+S So#tware T(.er On Dela!I+etent(-e
FC $1 IB>@%O, %O,E In'(re&t Blo&= %o-e
FC $2 +SET BIT_>OGC +eset +an)e o# Outputs
FC $3 SET BIT_>OGC Set +an)e o# Outputs
FC $4 1TT T1B>E 1'' to Ta<le
FC $" FIFO T1B>E F(rst In/F(rst Out Unloa' Ta<le
FC $0 TB>_FID T1B>E Ta<le F(n'
FC $? >IFO T1B>E >ast In/F(rst Out Unloa' Ta<le
FC $$ TB> T1B>E Ta<le
FC $* TB>_/+D T1B>E %o-e Ta<le to /or'
FC *0 /S+ S3IFT /or' S2(#t +e)(ster
FC *1 /+D_TB> T1B>E /or' to Ta<le
FC *2 S3+B S3IFT B(t S2(#t +e)(ster
FC *3 SEG CO,E+T Se-en Se).ent De&o'er
FC *4 1T3 CO,E+T 1SCII to 3e9
FC *" 3T1 CO,E+T 3e9 to 1SCII
FC *0 ECO CO,E+T En&o'e B(nar! Pos(t(on
FC *? DECO CO,E+T De&o'e B(nar! Pos(t(on
FC *$ BCDCP> CO,E+T TenJs Co.ple.ent
FC ** BITSU% CO,E+T Su. u.<er o# B(ts
FC 100 +SETI BIT_>OGC +eset +an)e o# I..e'(ate Outputs
FC 101 SETI BIT_>OGC Set +an)e o# I..e'(ate Outputs
FC 102 DE, %1T3_FP Stan'ar' De-(at(on
FC 103 CDT T1B>E Correlate' Data Ta<le
FC 104 TB>_TB> T1B>E Ta<le to Ta<le
FC 10" SC1>E CO,E+T S&al(n) ,alues
FC 100 USC1>E CO,E+T Uns&al(n) ,alues
!iscellaneous Blocks
Number Name Family Description
FB 00 SET_S/ TI%EFUC 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%EFUC 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
FB 02 TI%EST%P TI%EFUC trans#ers t2e t(.e6sta.pe' .essa)es o# an I%1"362 (nto
(ts (nstan&e DBF
FC 00 >OC_TI%E TI%EFUC 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
FC 01 BT_>T TI%EFUC &al&ulates t2e lo&al t(.e #ro. t2e <ase t(.e )(-en at t2e
(nputF
FC 02 >T_BT TI%EFUC &al&ulates t2e <ase t(.e #ro. t2e lo&al t(.e )(-en at t2e
(nputF
FC 03 S_>TIT TI%EFUC sets t2e re:u(re' t(.e (nterrupt to t2e preset t(.eF T2(s
t(.e (s )(-en (n lo&al t(.eF

You might also like