HwT Posted June 6, 2016 Report Posted June 6, 2016 I have some questions about creating a soft start / ramp up function in Gx Works 2, does anybody have an example on how to do this? 16 bit value 0-250, and tunable time. Its for analoge value out. I would be grateful for any help with this.
Luke.S Posted June 6, 2016 Report Posted June 6, 2016 Mitsubishi has an instruction specifically designed for ramping single word integers to soft start analogue outputs. Search for RAMP in the instructions section of the programming manual. It includes a constant to inc/decrease the rate. If CPU you're using doesn't have it you can also do it by adding a constant to a device every scan until it gets within say 10% of the "SP", then switch to the device containing the target value. You can adjust it by making the constant bigger/smaller.
HwT Posted June 6, 2016 Author Report Posted June 6, 2016 Hello Luke! I found the "ramp" function but i cant seem to get it to work, it should ramp from 0 - 100 in 10 scans. And i created a (Word Signed) D25. But i can't get it to compile. Just throws me the following error:
Luke.S Posted June 7, 2016 Report Posted June 7, 2016 The only thing I can think of is the output d should be an array of "ANY_16" with 2 elements. Make sure your output can use 2 words (the second one is just for processing I believe).
kaare_t Posted June 7, 2016 Report Posted June 7, 2016 Your output (RampUp_Test) should be an array of two elements.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now