Jump to content
OMRON Forums

Home / Positive / Negative over travel limit flags for JHW port on Clipper


Sina.Sattari

Recommended Posts

I got a question from a customer requesting for flag inputs for the JHW pulse/direction output. I wrote the following note for him which might be useful for others too: here is the original question: I have an application using the 4-Axis Clipper. I'm using the JHW port to control a stepper motor (clk/dir) for the 5th axis. I need +/- H/W travel limits for this 5th axis. What is your recommendation on the best way to implement this function? The best way is to use some of the I/O lines, but change their function in the gate so that they would act as Home / Pos / Neg / User flags for those channels. Here is how to do it: Command Output / Port / Pin PUL1+ / J10 / 11 PUL1- / J10 / 12 DIR1+ / J10 / 13 DIR1- / J10 / 14 Flag Inputs / Port / Pin HMFL1 / J9 / 17 PLIM1 / J9 / 19 MLIM1 / J9 / 21 USER1 / J9 / 23 Wiring Example: [attachment=1287:name] Jumpers / Setting E16 / Install E17 / Remove Software Settings: M32->X:$78400,0,8 ; Direction Control bits 0-7 (1=output, 0 = input) M34->X:$78400,8,8 ; Direction Control bits 8-15 (1=output, 0 = input) M40->X:$78404,0,24 ; Inversion control (0 = 0V, 1 = 5V) M42->Y:$78404,0,24 ; J9 port data type control (1 = I/O) Power-up PLC: Open plc 1 clear M32=$00 ;IO 1/8 inputs M34=$FF ;IO 9/16 Outputs M40=$0 ; Do not invert anything M42=$FF0F ; 1~4 GP I/O 5~8 flags 9~16 GP I/O Disable plc 1 Close Ixx25=$78410 Ixx02 = $78414 I6810 = 8 ; Internal pulse and direction I6816= 3 ; PFM on C I6812= 2 ; Flag high trigger for capture I6813=0 ; Home Flag Selected Ixx03 and Ixx04 appropriate ECT entry performing a “No extension of quadrature encoder” pointing to $78410
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Guest
This topic is now closed to further replies.

×
×
  • Create New...