当前位置:网站首页>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:<
边栏推荐
猜你喜欢

3de 保存到收藏夹

利用jemalloc解决flink的内存溢出问题

Why is setinterval so easy to get stuck in the high and low level

Simple introduction to thoroughly understand anti shake and throttling

Flutter-状态管理

服装实体店如何突破销售困境

Docker install redis

云原生架构(03)-架构
![[netding Cup 2018] fakebook1 reference](/img/c8/a9d77308b6cc542c8c47a570b9234c.png)
[netding Cup 2018] fakebook1 reference

3000 yuan projector comparison and evaluation, dangbei D3x beats Jimi new Z6 x
随机推荐
H index problem
ORA-32700: error occurred in DIAG Group Service
Summary of image classification based on pytoch: swing transformer
Cloud native architecture (02) - what is cloud native
Use yolov5 to train your own data set; Installation and use of yolov5; Interpretation of yolov5 source code
分析Iceberg合并任务解决数据冲突
魔法方法《六》__enter__和__exit__
How to do activities in beauty salons
When 618 attacks, how to choose between Beibei X3 and Jimi h3s? Take you all-round in-depth analysis
Threejs realizes the fluctuation hot spot effect, fluctuation mark and fluctuation label display
Cloud native architecture (03) - Architecture
未來已來:雲原生時代
How did we solve the realsense color bias problem?
Wechat applet ChAT expression
MySQL 45 lecture notes (I) execution of an SQL statement
基于logback.xml实现保存日志信息的无感操作
八大排序之直接插入排序
服装实体店如何突破销售困境
Runtime package for golang concurrent programming
zombie进程与orphan进程