I can't understand MOVD(083) and XFRB(062) also others.But 2 instruction more important to understand for me.Plz Discussion more easily and deeply.And why we will use this.plz help.
Hi Imran, accautomation.ca/omron-cp1h-data-movement The MOVD (Move Digit) will move bits in groups of 4. (Digit) The instruction will take a source word and destination word. You then specify in the control word of the instruction the starting digit to look at, the number of digits to move ( 1 to 4) and the starting digit location to move the digits. The XFRB (Multiple Bit Transfer) will move bits 1 at a time. The instruction will take a source word and destination word. You then specify in the control word of the instruction the starting bit to look at, the number of bits to move ( 0 to 16 (0-F)) and the starting bit location to move the bits. The XFRB instruction can do the same job as the MOVD as long as you select multiples of 4 bits at a time and your starting and ending positions are the same as the digits. Regards, Garry
Indirect addressing/pointers would've been a great addition to this video, I run into them at work all the time and they can really trip someone up if they don't understand whats going on! But an excellent video nonetheless!
Hi philipmclamore, Thank you for the comments. Indirect addressing /pointers were covered in the numbering systems and addressing post. accautomation.ca/omron-cp1h-numbering-systems-and-addressing/ Here is the corresponding video: th-cam.com/video/vhwGoaDC-aE/w-d-xo.html Thanks again, Garry
Hi Corwin, Are the words already being written? You could move your logic for the writing of the words just before the end statement in your ladder code. This will test to see if this is the case. Regards, Garry
@@ACCautomation it appears to be some issue with the way I am using a custom function block, when I extract the code out of the function into the main ladder it works fine. This solution is acceptable for my purposes so I have run with that.
I can't understand MOVD(083) and XFRB(062) also others.But 2 instruction more important to understand for me.Plz Discussion
more easily and deeply.And why we will use this.plz help.
Hi Imran,
accautomation.ca/omron-cp1h-data-movement
The MOVD (Move Digit) will move bits in groups of 4. (Digit) The instruction will take a source word and destination word. You then specify in the control word of the instruction the starting digit to look at, the number of digits to move ( 1 to 4) and the starting digit location to move the digits.
The XFRB (Multiple Bit Transfer) will move bits 1 at a time. The instruction will take a source word and destination word. You then specify in the control word of the instruction the starting bit to look at, the number of bits to move ( 0 to 16 (0-F)) and the starting bit location to move the bits.
The XFRB instruction can do the same job as the MOVD as long as you select multiples of 4 bits at a time and your starting and ending positions are the same as the digits.
Regards,
Garry
Indirect addressing/pointers would've been a great addition to this video, I run into them at work all the time and they can really trip someone up if they don't understand whats going on! But an excellent video nonetheless!
Hi philipmclamore,
Thank you for the comments. Indirect addressing /pointers were covered in the numbering systems and addressing post.
accautomation.ca/omron-cp1h-numbering-systems-and-addressing/
Here is the corresponding video:
th-cam.com/video/vhwGoaDC-aE/w-d-xo.html
Thanks again,
Garry
I have run into an issue where I seem to be unable to write into words greater than 41. This issue is occurring with all functions. Any suggestions?
Hi Corwin,
Are the words already being written?
You could move your logic for the writing of the words just before the end statement in your ladder code. This will test to see if this is the case.
Regards,
Garry
@@ACCautomation it appears to be some issue with the way I am using a custom function block, when I extract the code out of the function into the main ladder it works fine. This solution is acceptable for my purposes so I have run with that.
@@corwinbroekhuizen3619
I'm glad you got it going.
Garry