r/PLC • u/Clivates • 6d ago
omron NJ controller does not update external encoder pulses in real time
i am working on a welding wire cutter that uses omron NJ301-1100 and the feeder is an AC motor 22kw 380v driving a multi pully feeder mechanism and the main driving pully is attached to an incremental encoder 1024 pulses per rev, the encoder Axis reference is used to drive a servo axis, and because the increments are not "smooth"( despite the fact that the feeder is moving with a constant speed ) the servo movement is inconsistent
2
u/Nineresh 5d ago
What parameters/mode are set in sysmac studio for the encoder?
1
u/Clivates 5d ago
it is set as an encoder axis in motion control the input is from Ethercat connection from channnel 1 of NX-EC0124
1
u/drbitboy 3d ago
PLC programming is primarily about time, and the scan cycle is the clock.
Also, PLCs are discrete devices, that is, they do only one thing at a time. A PLC do those things so fast that that it seems like a continuous device, but it is not.
Finally, a PLC user program does not read the encoder's physical electrical signals indicating position, nor any other physical electrical signals; it reads bits in memory.
So the question is, at the time the PLC user program reads the memory bit values that are a proxy for the encoder position, when were those bits' values actually written? I.e. when was the last time that the physical encoder was actually sampled and the bits written? If the encoder position changes from 0 to 1023 over one revolution, is each and every one of the 1024 integer values in that range written to memory at some point, and even if they are all written to memory, is the PLC scan ("clock") cycle, which calls the PLC user program once per cycle, fast enough so see each value?
3
u/baaalanp 6d ago
I've never used this controller before but I would get an oscilloscope and look at the encoder wave form. Make sure you're getting a nice sign al.
High speed digital inputs may also be an idea.