Download 5Categories and Use of Basic Application Instructions
Transcript
3 Functions of Devices in DVP-PM 4. When PV reaches up to 2,147,483,647, the next PV will turn to -2,147,483,648. When PV reaches down to -2,147,483,648, the next PV will turn to 2,147,483,647. LD X10 OUT M1200 LD X11 RST C200 LD X12 DCNT C200 LD C200 OUT Y0 X10 M1200 X11 RST C200 DCNT C200 X12 K-5 K-5 C200 Y0 1. X10 drives M1200 to determine whether C200 is an addition or subtraction counter. 2. When X11 goes from Off to On, RST instruction will be executed, PV in C200 will be cleared to "0”, and the contact will be Off. 3. When X12 goes from Off to On, PV in the counter will count up (plus 1) or down (minus 1). 4. When PV in C200 changes from K-6 to K-5, the contact of C200 will go from Off to On. When PV in C200 changes from K-5 to K-6, the contact of C200 will go from On to Off. 5. If you use MOV instruction, PMSoft or HPP03 to send a value bigger than SV to the present value register of C0, next time when X1 goes from Off to On, the contact of counter C0 will be On, and its PV will equal SV. X10 Accumulatively increasing Accumulatively increasing Progressively decreasing X11 X12 5 4 3 2 PV in C200 1 4 3 2 1 0 0 0 -1 -2 -3 -3 -4 When the output contact was O n. -4 -5 -5 -6 -6 -7 -7 -8 Contacts Y 0,C0 3.8 Numbering and Functions of Registers [D] 3.8.1 Data Register [D] A data register is for storing a 16-bit datum of values between -32,768 ~ +32,767. The highest bit is “+” or “-“ sign. Two 16-bit registers can be combined into a 32-bit register (D + 1; D of smaller No. is for lower 16 bits). The highest bit is “+” or “-“ sign, and it can store a 32-bit datum of values between -2,147,483,648 ~ +2,147,483,647. DVP-PM Application Manual 3-11 ООО "НПО "СТОИК ЛТД", 107392 Москва ул.Просторная 7, (495) 661-24-61, http://www.stoikltd.ru Example: