Machine Automation Forum
A forum addressing machine automation solutions for the complete machine lifecycle. Including offers like Machine Advisor, Modicon PLC/PacDrive, Lexium or Preventa. Discuss and share knowledge on offers relating to cloud-based service platforms, machine localization and monitoring, industrial operations control, motion products as well as safety function!
Link copied. Please paste this link to share this article on your social media post.
Posted: 2024-09-19 10:54 PM
Hi,
I’ve just been using 'sys_FM_READ' from the 'FS_IEC' library (version 1.0.0).
The function seems to read up to the number of characters/bytes specified by the ‘len’ arg or up to the first linefeed character, whichever comes first.
Is this correct?
Are there are any other characters that act like linefeed that reduce the number of characters being read in a call?
Is there a maximum to the 'len' argument?
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: 2025-02-17 08:37 AM
Hi,
the function works as you are expecting.
No other chars act like linefeed.
I've never tested it with a number so big, but the limit of LEN should be 32767, so basically it should work with any string you can define.
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-17 08:37 AM
Hi,
the function works as you are expecting.
No other chars act like linefeed.
I've never tested it with a number so big, but the limit of LEN should be 32767, so basically it should work with any string you can define.
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-17 08:07 PM
Thanks @FedericoM. Could the documentation be updated to reflect these details?
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-19 06:13 AM
Sorry, I can only track the request
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.