Sign in to follow this  
Followers 0
professor_jonny

cp2e PIDAT

4 posts in this topic

I'm having issues getting the PIDAT function to work

It just does not seem to regulate and I dont know what I'm doing wrong.

 

 

pidat.cxp

Share this post


Link to post
Share on other sites

You did not move all of your settings into the D550 area.  For instance, you move a value into D504, but never move it to D554.  Basically, you need to change your XFER instruction from moving 3 words from D500 to D550 to moving &11 words from D500 to D550.   You set everything up and then did not move it into the area used for the PIDAT instruction.

 

Also, it is recommended to put zeros in the scratch pad area.  D511 - D540 in your case.  Use a first scan flag to a BSET instruction.

Instruction:   BSET #0 D511 D540

 

Share this post


Link to post
Share on other sites

Yes I'm doing that in another part of the code not in the sample.

But i have found my problem it uses a proportional band not gain i found this after a second read of the instruction manual, I did not realize this it is kind of a bit odd way of doing it.

I was winding up the setting when I should of lowered it to make make the regulation tighter I have it sorted now thanks.

 

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