Sign in to follow this  
Followers 0
MickeyBob

Non-trivial Math

4 posts in this topic

I need to do a rather long mathmatical calculation. Is there an instruction that allows multiple mathmatical operations to be done in a single shot? Or do you have to do each operation separately, storing intermediate results in working registers? Tx, MickeyBob

Share this post


Link to post
Share on other sites
Unless you are using either CS or CJ version 3 CPUs, you must use individual math functions. If you are using one of the new Version 3 CPUs, you can create a function block for your long math calculation.

Share this post


Link to post
Share on other sites
I'm currently using a CJ1M-CPU21. Is it a "version 3" CPU? Is there a way to easily tell? Tx, MickeyBob

Share this post


Link to post
Share on other sites
Read the below document: How_to_discriminate_V3_CPU_in_the_front_without_looking_label.pdf

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
Sign in to follow this  
Followers 0