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: 2025-02-11 01:44 PM
I hope this is the right spot for this question. I think I'm on the right track but can't seem to get this to work.
I have an elementary variable ARRAY [0..5] OF INT with some numbers and want to extract values from it with function blocks.
Attached is what I have so far. It does what I want but can't seem to get values I want past the 0/n location.
Thanks, Jeff Perau
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: 2025-02-15 09:27 PM
The EXTRACT block copies by bytes. You are using INTs which are 2 bytes long. SRC_POS needs to increment by 2 and CPY_NELEM should be 2 in order to get both bytes.
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: 2025-02-15 09:27 PM
The EXTRACT block copies by bytes. You are using INTs which are 2 bytes long. SRC_POS needs to increment by 2 and CPY_NELEM should be 2 in order to get both bytes.
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.
With achievable small steps, users progress and continually feel satisfaction in task accomplishment.
Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.
of