JMP0

ORG(889) and INI(880)

4 posts in this topic

Have a stepper motor driving a linear slide.  Am able to set the origin and return to origin with no problems.  Need a way to abort the return to origin if something goes wrong.  Have tried using INI to stop the pulse output, but cannot seem to get it to work while returning to origin.The return continues and then the INI kicks in on completion.  Have read up on these commands in the W450 manual but see no definite explanation.  Outside of the return to origin INI works fine to stop the pulses and motion.  Any thoughts?
CX_Programmer 9.64 and CP1H-XA

Share this post


Link to post
Share on other sites

INI with the port number and #3 as the field for C will stop pulse output.

If you want to stop pulse output 0, it would be

INI #0 #3 D400, where D400 (and D401) is a double word that is not used in the program.  The value is D400 (and D401) is not used for this function, but an address must be specified here.

Share this post


Link to post
Share on other sites

Thank you Michael.  Yes I am using your method without success.

Found this:

"If a PLC output is subject to both high-speed and regular ladder instructions: - During active pulse train, an output control by PTO instructions has priority over control by regular ladder instructions, regardless of the instructions order in the program (not tested for interrupts). - The regular ladder logics is being performed continuously,the output state is being monitored and can be used as a contact in ladder, regardless of high-speed pulse train on this output. The result of regular ladder logics processing will apply to physical output after pulse train stop."

http://forums.mrplc.com/index.php?/topic/21613-cp1h-step-and-direction/#comment-104125

Share this post


Link to post
Share on other sites

By any chance you let the ORG instruction to keep turned On when the INI is triggered?

You should use Differential Up input contact, or use the @ORG version of the instruction. That way, after INI kicks in, the ORG will not be retriggered.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now