Changing a Parameter value online

Daelim

Member
Join Date
Feb 2013
Location
Mongolia
Posts
25
Hello All
I am new to the forum and also to the world of PLCs.

I would like to have your expert advice, If I can change the floating point value highlighted in the attached pic of Source B online or not.
The PLC is AB RS Logix 5000.
I have been asked to change the value to 5000 from 6000 and see the possibility of doing it online as the Equipment is currently running.
Any help will be highly appreciated

Signal Fault Alarm_TG-A.JPG
 
You just double click on your rung where it says "121" to start the edit. Change the source B to 5000. Then above the window, you see your grayed-out buttons, assuming that you made no typo's, click the finalize button. The change isn't sent to the PLC until you've assembled the edit (finalize button)
 
Hello Mark

Thanks for the reply, I was thinking of that as well but for that we need the equipment shutdown as that will be an offline change which will require a download. Please correct me if I am wrong.
 
Hello Mark

Thanks for the reply, I was thinking of that as well but for that we need the equipment shutdown as that will be an offline change which will require a download. Please correct me if I am wrong.

You can make the change I described online. You can also make the change Mark mentioned online, as you can create tags online, though I'd take this in baby steps.

If you modify your program offline, you will have to upload or download. Upload will erase your offline changes, download will stop the controller and write a new program to it.
 
Hello Mark

Thanks for the reply, I was thinking of that as well but for that we need the equipment shutdown as that will be an offline change which will require a download. Please correct me if I am wrong.

No , you can create new tags online
 
You just double click on your rung where it says "121" to start the edit. Change the source B to 5000. Then above the window, you see your grayed-out buttons, assuming that you made no typo's, click the finalize button. The change isn't sent to the PLC until you've assembled the edit (finalize button)
Hello Dmroeder

Thanks for the reply and the help, much appreciated, I am getting the attached message when I made the change the way you suggested,

Shall I go ahead and click on "Yes", will it affect the equipment in any manner?
This is the only change I am making. Thanks for the help again.

SSS.jpg
 
I'm assuming that you only change Source B of that instruction, you can click yes, it will not stop your program or anything like that.
 
I'm assuming that you only change Source B of that instruction, you can click yes, it will not stop your program or anything like that.
Dear Dmroeder

Thanks for all the replies , I was able to change the parameter online by the method given by you with no hiccups. I Will try adding a controller tag online and will try assigning it to source B online, hope that works out. Thanks again for the help.
 
Dear Dmroeder

Thanks for all the replies , I was able to change the parameter online by the method given by you with no hiccups. I Will try adding a controller tag online and will try assigning it to source B online, hope that works out. Thanks again for the help.

When you edit, type your tag name into source B. Highlight it and click CTRL+W to open the new tag window. Pay attention to the default data type and scope the tag will be created in. The default data type is a DINT, I'm assuming that is what you want there since the value you are comparing is an integer.

Once your new tag is created, be sure you populate your new tag with the value of 5000 before you assemble the edit, the default value when you create a new integer will be 0. So if you create the new tag and assemble it, the rung will be comparing the input to your new tag with a value of 0.

The advantage here of comparing against a tag rather than a "hard coded" value is that you can change the value of the tag without editing the program.

The disadvantage of this is that it is now easy for others to change. You may or may not want this. Currently, to change the value, it takes a series of steps, which you have to think about. Being able to change it via a tag means the change takes place immediately, so when some one is changing the value from 5000 back to 6000, you can easily accidentally type 6 or 60 or 60000. Also, if you don't want others to be able to change it, not using a tag (as you have it now), you can place the keyswitch in the RUN position to prevent online edits from being assembled. Using a tag, the keyswitch position won't matter, someone will be able to change it. Just some things to keep in mind...
 
Floating Point

Notes for general practices for any PLC -

If a constant is a floating-point (a real) it's best to enter it with a '.0' at the end. That shows the compiler your expectation of what the number is. If the compiler doesn't like you entering it that way you need to resolve the conflict.


If you make the value an entered setpoint you may consider putting boundaries on it where you limit it to being between a minimum and a maximum. This tends to avoid a lot of problems including divide by zero issues. PLC code setpoint bounding is the safest best. HMI setpoint entry bounding is also nice but it should be used to supplement (not replace) PLC code bounding. The recent thread about the water-plant problem in Florida is good on this topic.
 
Notes for general practices for any PLC -

If a constant is a floating-point (a real) it's best to enter it with a '.0' at the end. That shows the compiler your expectation of what the number is. If the compiler doesn't like you entering it that way you need to resolve the conflict.


If you make the value an entered setpoint you may consider putting boundaries on it where you limit it to being between a minimum and a maximum. This tends to avoid a lot of problems including divide by zero issues. PLC code setpoint bounding is the safest best. HMI setpoint entry bounding is also nice but it should be used to supplement (not replace) PLC code bounding. The recent thread about the water-plant problem in Florida is good on this topic.
HI

Thanks for the advice, will keep this mind.
 
When you edit, type your tag name into source B. Highlight it and click CTRL+W to open the new tag window. Pay attention to the default data type and scope the tag will be created in. The default data type is a DINT, I'm assuming that is what you want there since the value you are comparing is an integer.

Once your new tag is created, be sure you populate your new tag with the value of 5000 before you assemble the edit, the default value when you create a new integer will be 0. So if you create the new tag and assemble it, the rung will be comparing the input to your new tag with a value of 0.

The advantage here of comparing against a tag rather than a "hard coded" value is that you can change the value of the tag without editing the program.

The disadvantage of this is that it is now easy for others to change. You may or may not want this. Currently, to change the value, it takes a series of steps, which you have to think about. Being able to change it via a tag means the change takes place immediately, so when some one is changing the value from 5000 back to 6000, you can easily accidentally type 6 or 60 or 60000. Also, if you don't want others to be able to change it, not using a tag (as you have it now), you can place the keyswitch in the RUN position to prevent online edits from being assembled. Using a tag, the keyswitch position won't matter, someone will be able to change it. Just some things to keep in mind...
Hi Dmroeder
Thanks for the reply, and all the help. Saved me the hassle of stopping the equipment and giving a complete download after change.
 

Similar Topics

I am in my freshmen year of college and just started interning at an industrial manufacturing company that uses Powerflex 755 drives for many of...
Replies
5
Views
2,324
So we have this machine called a "quickwater" that we use to heat our low pressure water system. On the HMI screen there is a place where you can...
Replies
3
Views
1,073
I'd like to be able to change the parameter file so that I can change the tags used when i start ME. Or is there a way to pass parameters or...
Replies
6
Views
2,667
hi all i'm using Pm554-E-TH plc using codesys i can compile the programme without any errors but when im running the programme this error msg is...
Replies
0
Views
1,297
Hi to all. We need to change a bad powerFlex 525 to a new one. How do you save the configuration to install in the new one? Thank you all for...
Replies
5
Views
214
Back
Top Bottom