当前位置:网站首页>Smart S7-200 PLC channel free mapping function block (do_map)
Smart S7-200 PLC channel free mapping function block (do_map)
2022-07-25 22:18:00 【RXXW_ Dor】
Sometimes we want the output point of the device to be freely mapped , Convenient for field modification , XOR is the wrong field wiring , We don't want to change the program , Just modify the parameters to change the channel number , This blog post gives the algorithm for everyone to learn . Limited to my ability and level , Mistakes and deficiencies are inevitable in the text , Sincerely welcome your criticism and correction , At the same time, thank you for your attention and subscription .
1、 Output channel free mapping

3、 Output channel free mapping

3、 mapping DO_Map_byte

4、STL Code
SUBROUTINE_BLOCK DO_Map_byte:SBR1
TITLE= Output address mapping
VAR_INPUT
byAddress:WORD; // Output offset address
bRun:BOOL; // Input
END_VAR
VAR_IN_OUT
byDout:BYTE;
END_VAR
BEGIN
Network 1
LDW= LW0, 0
LPS
A L2.0
ORB 1, LB3
LPP
AN L2.0
ANDB 16#FE, LB3
Network 2
LDW= LW0, 1
LPS
A L2.0
ORB 2, LB3
LPP
AN L2.0
ANDB 边栏推荐
- JMeter websocket接口测试
- C language: random generated number + selective sorting
- Call of addition, subtraction, multiplication and division of integer type only
- Wet- a good choice for people with English difficulties - console translation
- 完啦,上班三个月,变秃了
- SQL基本语句 DQL select与提取 DML插入删除
- The testing work is not valued. Have you changed your position?
- 开户就可以购买收益在百分之六以上的理财产品了吗
- Jenkins+svn configuration
- 6-18 vulnerability exploitation - backdoor connection
猜你喜欢

Don't know mock test yet? An article to familiarize you with mock

3dslicer importing medical image data

Imitation Tiktok homepage interface

Guiding principles of information security construction

在进行自动化测试,遇到验证码的问题,怎么办?

自动化测试岗花20K招人,到最后居然没一个合适的,招两个应届生都比他们强吧

核电站在席卷欧洲的热浪中努力保持安全工作

【C语法】void*浅说

『Skywalking』. Net core fast access distributed link tracking platform

Summary of function test points of wechat sending circle of friends on mobile terminal
随机推荐
[fan Tan] in detail: lower control, upward management, upward drawing cake.
力矩电机控制基本原理
How to implement an app application to limit users' time use?
Why does redis choose single thread?
3day
ThreadLocal 总结(未完待续)
[test development methodology] experience of test development platform PK - choice
Whether the five distribution methods will produce internal fragments and external fragments
Fill the whole square with the float property
Randomly generate 10 (range 1~100) integers, save them to the array, and print the array in reverse order. And find the average value, the maximum value and the subscript of the maximum value, and fin
SQL中in的用法 DQL 查询
What is partition and barrel division?
QML module not found
什么是类加载?类加载的过程?
El expression improves JSP
After 2 years of functional testing, I feel like I can't do anything. Where should I go in 2022?
mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No suc
[dinner talk] those things that seem to be for the sake of the company but are actually incomprehensible (2: soft quality "eye edge" during interview)
Win10 set up a flutter environment to step on the pit diary
在腾讯干软件测试3年,7月无情被辞,想给划水的兄弟提个醒...