Industry Automation and Control Forum
This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-03-12 10:01 PM
Hi all,
I know there is probably a simple solution, but I have searched everywhere for it and can't find the answer.
I have an existing M221 PLC running a STP, which has a failing HMI that is in need of replacement (operator accident, damaged the screen) We have decided to replace it with a HMIST6500 screen and I'm in the process of changing over the code from the old Vijeo designer to the new EOTE code.
I have successfully set up the symbol link and have a list of all the tags with names etc - all good. However I have discovered that the M221 code has been written with a large proportion of the bool variables (eg, start, stop, manual, auto, forward, reverse etc) stored in words, with the idea that each word relates to a particular motor or pump.
However I have not been able to find out how to access these individual bits within the EOTE software, so far I have tried:
STPM221.Memory_Words.MW_10..3.Value
STPM221.Memory_Words.MW_10:3.Value
%MW10:X3
%MW10.3
All which do not work. I'm thinking that I will need to use a converter to isolate the required bit? Can someone please point me into the correct direction.
Also there were some rumours on one of the forums I was reading where it said that there is a Vigeo -> EOTE convertor in the pipeline - any news on this?
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-03-15 06:44 AM
Hello,
The acces to a bit of a word is possible via Modbus FC Holding Registers through the Syntax
word.X0 = Bit0 of Word
...
word.X15 = Bit15 of Word
best regards
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-03-15 06:44 AM
Hello,
The acces to a bit of a word is possible via Modbus FC Holding Registers through the Syntax
word.X0 = Bit0 of Word
...
word.X15 = Bit15 of Word
best regards
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-03-15 10:53 AM
Hello,
You can find sample programme and video for %MW10:X1 at link.
this is Bit Toggle control via EOTE.
Best Regards,
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-03-15 03:27 PM
Thanks for your reply,
Yes, this will work, I knew there would be a simple approach. Just needed the right minds in the same room, Haha
Cheers
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-03-15 03:32 PM
Hi Ismailozinan,
Thanks for the reply, especially the effort you have put into the video.
Appreciate your help
Both answers work well, just a matter of figuring out which suits my application best.
Great to get fast response from the Schneider Team. Cheers.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-02-27 07:59 AM
I am trying to access the bit of an internal variable (i.e. one that does not have %MW address) to turn on and off a lamp. I tried "Word.X0" but it returns error.
What is the syntax to access the individual bits of an internal variable?
See screenshot below for reference.
Thanks.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-02-27 08:31 AM
A direct access to bit of a word like you show is not directly possible. You could define a specific bit position in a word as seperate variabel. In your case the best way would be to add converter. I attach a sample project from a colleague which shows how it could work.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-02-27 09:13 AM
Thank you for your prompt solution. I have used your converter method for this case.
If I could define the bit as a separate variable as you mentioned, that would be much easier
How do I extract a specific bit position in a word as separate variable? Would it be via scripting?
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.