13.07.2015 Views

[Instruction] Contents

[Instruction] Contents

[Instruction] Contents

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Advanced Function <strong>Instruction</strong>FUN 81 PLSOPULSE OUTPUTFUN 81 PLSO• When MD=1, the pulse output will reflect on the control output DIR (pulse direction. DIR=1, up; DIR=0, down)and CK (pulse output).• This instruction can only be used once, and UY (CK) and DY (DR) must be transistor output point on the PLCmain unit.• The effective range of output pulse count PC for 16 bit operand is 0~32767. For the 32 bit operand(instruction), it is 0~2147483647. If the PC value = 0, it is treated as infinite pulse count, and this instructionwill transmit pulses without end with HO value and “DN” flag set at 0 all the time. The effective range of pulsefrequency (Fr) is 8~2000. If the value PC or Fr exceeds the range, this instruction will not be carried out andthe error flag “ERR” will set to 1.X0X1X281D.PLSOEN MD : 0Fr : R 0PAU PC : R 1UY : Y 0U/D DY : Y 1HO : R 5OUTDNERRM0M1• In this example, the program controls the stepping motorto drive forward for 80 pulses (steps) at the speed of100Hz first, and then makes it turn reverse for 40 pulsesthe speed of 50Hz. Make sure that the up/down direction,frequency Fr and the pulse count PC must be set beforethe reset take action(“EN” changes from 0→1).ResetenableTurn forward100Hz going 80 stepsre-startStop(finished)Reset StartTurn reverse50Hz going 40 stepsStop(finished)Output enablePauseX0X1PauseDirectionForwardX2Recerse1 2 76 77 78 79 80Up-pulse Y01 2 40Down-pulseY1Under output M0Output doneM1Frequency R010050Pulse to outputR18040Output pulse count R50 1 2 75 76 77 78 79 800 1 2 39 407-64

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!