找回密码
 注册

QQ登录

只需一步,快速开始

搜索

[基本使用] [logix5000源程序]String Decoder

[复制链接]
山海致远 发表于 2019-6-11 02:38:09 | 显示全部楼层 |阅读模式
厂商
厂商: AB
String_Decoder.ACD (123.34 KB, 售价: 1 E币)

Functionality:

Subroutine String_Decode takes source string (string data format is most common when communicating with
some external devices over network) and extracts all values (separated by separator string,which shouldn't
contain numbers) into real array.

Numbers in the string are limited only to maximum array size,which is set in project to 50.

During decoding is string modiffied(decoded part is deleted), so if you want to keep source string, make a copy.


Example:
         source string          "0, 0.3, 0.0003, 3, 4567, 44.33"

         separator string       ","

         result values          [0 0.3 0.0003 3 4567 44.33]


您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|ELEOK |网站地图

GMT+8, 2024-12-23 12:45

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表