際際滷

際際滷Share a Scribd company logo
VAR
CONTADOR1:CTU;
CU1 AT %IX0.0:BOOL;
CD1 AT %IX0.1:BOOL;
R1 AT %IX0.2:BOOL;
LD1 AT %IX0.3:BOOL;
PV1:INT:=10;
QU1 AT %QX2.0:BOOL;
QD1 AT %QX2.1:BOOL;
CV1:INT;
END_VAR
CONTADOR1(CU := CU1, R := R1, PV := PV1);
QU1:= CONTADOR1.Q;
CV1:= CONTADOR1.CV;

More Related Content

Ctu

  • 1. VAR CONTADOR1:CTU; CU1 AT %IX0.0:BOOL; CD1 AT %IX0.1:BOOL; R1 AT %IX0.2:BOOL; LD1 AT %IX0.3:BOOL; PV1:INT:=10; QU1 AT %QX2.0:BOOL; QD1 AT %QX2.1:BOOL; CV1:INT; END_VAR CONTADOR1(CU := CU1, R := R1, PV := PV1); QU1:= CONTADOR1.Q; CV1:= CONTADOR1.CV;