Jump to content
OMRON Forums

Machine setup data


DaveBarnett

Recommended Posts

I am curious about dealing with machine setup data that needs to be static for a given machine, but still allows technicians to change very infrequently from machine to machine, site to site.  I know about how "fsave" variables effectively give Non-Volatile memory locations ...but, I don't really trust it ...or like the idea of casual users having programmatic access to the machine.

'Curious if any experienced users on this forum have come up their own way of dealing with this and what the strengths and weaknesses of alternative methods might be.

Thanks in advance...

Link to comment
Share on other sites

My personal experience is that I don't trust the settings generated by the IDE software.

Usually I write the settings into the Global Includes folder, and disallow PPMAC from using systemsetup.cfg.

It is very reliable to use the "fsave" command to temporarily save the contents of certain variables. Our users have been using it without any problems.

  • Thanks 1
Link to comment
Share on other sites

Thanks for the reply.... For sure the settings created by the IDE need to be heavily scrutinized! … But that's not what I’m talking about.  Imagine you have dozens of machines out in the field, but the only difference between them is, let’s say… a gearbox ratio, and this could change over time. It would be cleaner to put that gearbox ratio in an f-saved variable than to have an entirely different project just to deal with one variable change.  But, it means someone in the field needs to be trained in the use of the IDE, exposes other problems, etc.  I suppose a custom application could be written to handle manipulating only this single variable…but that carries some baggage, too.  

For one project, I added a rotary BCD switch wired to some unused I/O that allowed maintenance to choose among 16 options for the machine without using a computer.  It worked out well.  I’m looking for something akin to that, but that would work for a floating point number with high precision.  

 

IMG_3357.jpeg

Edited by DaveBarnett
  • Like 1
Link to comment
Share on other sites

You might look into something like the OMRON NB3Q-TW01B-V1 touch screen HMI for OEM with 3.5-inch TFT color LCD display,  ModBUS TCP.  Looking at products on the website, I think that's the lowest cost solution of that variety.  

Contact ODT tech support for details.

Link to comment
Share on other sites

I think your idea is very creative.

I don't know much about your equipment, something like this can be fixed in the controller as a file. Or modify and set through a host computer software.

I may not want unrelated personnel to easily change the PMAC controller configuration through DIP switches. I personally prefer to perform this operation through a dedicated host computer software.

I think your needs can be met, but it will be a little more complicated.

 

Link to comment
Share on other sites

On 2/23/2024 at 9:12 PM, DaveBarnett said:

Thanks for the reply.... For sure the settings created by the IDE need to be heavily scrutinized! … But that's not what I’m talking about.  Imagine you have dozens of machines out in the field, but the only difference between them is, let’s say… a gearbox ratio, and this could change over time. It would be cleaner to put that gearbox ratio in an f-saved variable than to have an entirely different project just to deal with one variable change.  But, it means someone in the field needs to be trained in the use of the IDE, exposes other problems, etc.  I suppose a custom application could be written to handle manipulating only this single variable…but that carries some baggage, too.  

For one project, I added a rotary BCD switch wired to some unused I/O that allowed maintenance to choose among 16 options for the machine without using a computer.  It worked out well.  I’m looking for something akin to that, but that would work for a floating point number with high precision.  

 

IMG_3357.jpeg

 

You can use the script's preprocessing instructions to implement different settings.

image.thumb.png.94c654ba129e913ec7c4db9fc6387c1d.png

 

The example is as follows:

image.thumb.png.4d525fa8f5291aff1b43b08906710eb8.png

image.png.f74ed399086a13d4201a85d5a56c5c4a.png

 

 

Then you can directly modify the predefinition in us'rflash via the sed command in Linux, such as the “_Machine_1” in the example above.

Use the instructions below to switch the _Machine_1 to _Machine_2.After that, all you have to do is send $$$ and you'll be able to use the new settings

system mount -o remount,rw /opt
system sed -i 's/#define _Machine_1/#define _Machine_2/g' /opt/ppmac/usrflash/Project/PMAC\ Script\ Language/Global\ Includes/global\ definitions.pmh
system mount -o remount,ro /opt

 

image.thumb.png.a7e812c18f337f29a496224df27136c0.png

 

 

 

 

Edited by MoMo
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...