Page 104

Petruzella_ProgrammableLogicControllers__5e

Count_PB <Local:1:I.Data.1> GRT Greater than (A>B) Source A Source B EQU Equal Source A Source B NEQ Not Equal Source A Source B C1_DN Count_PB Reset_PB CTU Count Up Counter Preset Accum LES Less than (A<B) Source A Source B C1.ACC FBD equivalent C1 25 0 0 10 C1.ACC 05 C1.ACC 0 15 C1.ACC Reset_PB 0 20 <Local:1:I.Data.2> Sheet 1 of 4 Sheet 2 of 4 25 25 0 L1 Inputs Ladder logic CTUD_01 CTUD ... Count Up/Down CUEnable ACC CDEnable PRE Reset DN Outputs L2 PL_1 PL_2 PL_3 0 ACC 2-B2 3-B2 4-B2 0 0 Count_PB 0 Reset_PB BOR_01 BOR ... Boolean Or In1 In2 Out 0 ACC EQU_01 1-C2 Sheet 3 of 4 Sheet 4 of 4 CU DN PL_1 <Local:2:O.Data.1> PL_2 <Local:2:O.Data.2> PL_3 <Local:2:O.Data.3> 5 5 C1 RES 10 10 PL_1 0 0 PL_2 GRT_02 GRT ... Greater Than (A>B) Source A Source B Dest 0 LES_02 LES ... Less Than (A<B) Source A Source B Dest BAND_01 BAND ... Boolean And In1 In2 Out 0 ACC 0 EQU ... Equal SourceA Dest 1-C2 1-C2 SourceB PL_3 0 ACC 20 20 15 15 0 NEQ_01 NEQ ... Not Equal SourceA Dest SourceB Figure 15-112  Comparison between ladder logic and the FBD equivalent for a program used to test the accumulated value of a counter. Function Block Programming  Part 6 393


Petruzella_ProgrammableLogicControllers__5e
To see the actual publication please follow the link above