当前位置:网站首页>Several methods of realizing high-low byte or high-low word exchange in TIA botu s7-1200
Several methods of realizing high-low byte or high-low word exchange in TIA botu s7-1200
2022-07-26 04:19:00 【AAA_ Automation Engineer】
TIA Portal S7-1200 Several methods of realizing high-low byte or high-low word exchange in


for example S7-1200 When communicating with some upper computers , The storage mode of read-write floating-point numbers is different from that of the upper computer , That is, high and low words or bytes are opposite , The data read at this time is incorrect , You need to change the high and low characters , Can display normally .
The following is a summary of several methods of high-low word or byte Exchange , For your reference .
stay TIA On the way to bo , A floating point data REAL, Occupy 4 Bytes , namely DWORD.
With DWORD Take the high and low word exchange of as an example (WORD The high and low bytes of are the same ):
| One 、 Through indirect addressing , How to access fragments |
As shown in the figure below , Create a new one FC block , The interface variables of the block are shown in the following figure ,SCL The procedure is shown in the figure below , Assign the high word of the input variable to the low word of the output variable , The low word of the input variable is assigned to the high word of the output variable 
Add two variables to the data block inputData and outputData, The data type is Real floating-point , As shown in the figure below ,
边栏推荐
- 测试用例设计方法之:入门试招,等价边界初探
- Recommendation | scholar's art and Tao: writing papers is a skill
- Which websites can I visit to check the latest medical literature?
- How mantium uses deepspeed to implement low latency gpt-j reasoning on Amazon sagemaker
- I.MX6U-系统移植-6-uboot图形化配置
- Mantium 如何在 Amazon SageMaker 上使用 DeepSpeed 实现低延迟 GPT-J 推理
- Inventory the concept, classification and characteristics of cloud computing
- SEGGER Embedded Studio找不到xxx.c或者xxx.h文件
- 图互译模型
- 解决:RuntimeError: Expected object of scalar type Int but got scalar type Double
猜你喜欢

How to download the supplementary literature?

2021 CIKM |GF-VAE: A Flow-based Variational Autoencoder for Molecule Generation

Go Plus Security:一款Build Web3不可或缺的安全生态基础设施

文献|关系研究能得出因果性结论吗

I.MX6U-系统移植-6-uboot图形化配置

(translation) timing of website flow chart and user flow chart

How mantium uses deepspeed to implement low latency gpt-j reasoning on Amazon sagemaker

构建关系抽取的动词源

Makefile knowledge rearrangement (super detailed)

机器学习之桑基图(用于用户行为分析)
随机推荐
Matlab drawing
图互译模型
Mantium 如何在 Amazon SageMaker 上使用 DeepSpeed 实现低延迟 GPT-J 推理
Pathmatchingresourcepatternresolver parsing configuration file resource file
Small ball and box model, arrangement and combination
How to download the supplementary literature?
【SVN】一直出现 Please execute the ‘Cleanup‘ command,cleanup以后没有反应的解决办法
Support proxy direct connection to Oracle database, jumpserver fortress v2.24.0 release
AcWing. 102 best cattle fence
荐书丨《教育心理学》:送给明日教师的一本书~
【二叉树】二叉树中的最长交错路径
Huawei issued another global convening order of "genius youth", and some people once gave up their annual salary of 3.6 million to join
p-范数(2-范数 即 欧几里得范数)
[C language foundation] 13 preprocessor
Share | 2022 big data white paper of digital security industry (PDF attached)
Segger embedded studio cannot find xxx.c or xxx.h file
Web测试方法大全
Function knowledge points
Sweet butter
sorting and searching 二分查找法