Stuart_Wales

Can Someone Explain This Code Please...

6 posts in this topic

See photo, I've used the help feature but it's not helping much..... Especially the ">SFLD 3" command?

Code is linked to a 12 character ASCII input from HMI (which I am extending length to 16 characters), and then sent to a laser controller to mark a part.

Laser.thumb.png.37e4939b88028a5647026548

Share this post


Link to post
Share on other sites

The C24 module is set to byte processing instead of word.

As for the >SFLD 3 [D9500.D9501............] [H0D] command you will have to consult your laser controller protocol 

1 person likes this

Share this post


Link to post
Share on other sites
12 minutes ago, Stuart_Wales said:

Hi Gambit, what do you mean by C24 module?

QJ71C24(r2 or R4). This is serial communication right?

Ending the string with CR (hex 0D)

Edited by Gambit

Share this post


Link to post
Share on other sites

The $MOV moves that specific character string ">SFLD 3 " into the D8050. The next instruction WTOB separates each of the characters into its own register, this is repeated with a second set of registers. the MOV H0D is moving a Hex value for a CR into a register. then the last line combines all of the characters back into 1 string of 51 characters. 

2 people like this

Share this post


Link to post
Share on other sites
On ‎13‎/‎02‎/‎2018 at 8:31 AM, Delbert said:

The $MOV moves that specific character string ">SFLD 3 " into the D8050. The next instruction WTOB separates each of the characters into its own register, this is repeated with a second set of registers. the MOV H0D is moving a Hex value for a CR into a register. then the last line combines all of the characters back into 1 string of 51 characters. 

Thank you

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