当前位置:网站首页>Beifu PLC string type string operation
Beifu PLC string type string operation
2022-06-22 03:41:00 【Dusk and starry sky】
Based on Beifu PLCString The function of type is described as follows :
1、 The connection of two strings :CONCAT
VAR_INPUT
STR1 : STRING(255);
STR2 : STRING(255);
END_VAR
IL Example :
LD ‘SUSI’
CONCAT ‘WILLI’
ST Var1 (* Result is ‘SUSIWILLI’ *)
ST Example :
Var1 := CONCAT (‘SUSI’,‘WILLI’);
2、 Delete a continuous character at a certain position :DELETE
Delete the first POS Location ( from 1 From the beginning ) continuity LEN The remaining string after the length is used as the return value ;
VAR_INPUT
STR : STRING(255);
LEN:INT;
POS:INT
END_VAR
IL:
LD ‘SUXYSI’
DELETE 2,3
ST Var1
The result is :’SUSI’
ST:
Var1 := DELETE (‘SUXYSI’,2,3);
The result is :’SUSI’
3、 Find substring in string :FIND
Grammar format :FIND(STR1,STR2)
function : stay STR1 Find STR2 First occurrence , Return as return value ;
VAR_INPUR
STR1: STRING(255);
STR2: STRING(255)
END_VAR
Example :
IL:<
边栏推荐
猜你喜欢

告警日志中出现ORA-48132 ORA-48170

3DE robot suction cup grabbing box

The cloned VMware virtual host network card cannot be started solution

Cloud native architecture (02) - what is cloud native

未来已来:云原生时代

R data analysis: significance and practice of calibration curve and DCA curve in clinical prediction model
![[netding Cup 2018] fakebook1 reference](/img/c8/a9d77308b6cc542c8c47a570b9234c.png)
[netding Cup 2018] fakebook1 reference

试用了多款报表工具,终于找到了基于.Net 6开发的一个了

Irregular naming

3000 yuan projector comparison and evaluation, dangbei D3x beats Jimi new Z6 x
随机推荐
2019年全国职业院校技能大赛中职组“网络空间安全”正式赛卷及其“答案”
告警日志中出现ORA-48132 ORA-48170
八大排序之直接插入排序
3DE recover from design
系统漏洞利用与提权
存算一体芯片离普及还有多远?听听从业者怎么说 | 对撞派 x 后摩智能
倍福 PLC 字符串类型string操作
多线程 interrupt用法
Use yolov5 to train your own data set; Installation and use of yolov5; Interpretation of yolov5 source code
倍福TwinCAT3控制器和控制器间的Ads通讯
基于51的超声波测距仪代码(截图版)
倍福TwinCAT3伺服控制常用功能块的实现
倍福TwinCAT设置PLC的扫描周期,运行周期方法
倍福TwinCAT3中PLC程序变量定义和硬件IO关联
逆向crackme之ESp定律脱壳
C语言整数取值范围-负数多1的问题
Flutter-状态管理
vim常用命令
倍福嵌入式控制器PLC各型号介绍
How to randomly assign 1000 to 10 numbers