当前位置:网站首页>Byte, word, doubleword relationship
Byte, word, doubleword relationship
2022-06-30 00:26:00 【WX_ LW】
bit The bit
byte byte
word word
double word Two words
Integer Integers
Real number The set of real Numbers
Floating-point number Floating point numbers
1double word = 2 word
1 word = 2 byte
1 byte =8 bit
for example :
VB100= VB100.7~ VB100.0 ( High position Low position )
VW100= VB100 VB101 ( High position Low position )
VD100= VW100 VW102 = VB100 VB101 VB102 VB103 ( High position Low position )
for example :
MB516 from M516.0~M516.7 form , because M516.3 by 1, therefore MB516 The binary representation of is 0000 1000, So its decimal value is 8.
MW516 from MB516,MB517 form , Because Siemens is different from other manufacturers , Large tail storage mode is adopted , therefore MW516 The content of is 0000 1000 0000 0000, Its decimal number is 2048.
MD516 from MW516 and MW518 form ,MW516 from MB516 and MB517 form ,MW518 from MB518 and MB519 form ,MD516 The content of is 0000 1000 0000 0000 0000 0000 0000 0000, Its decimal number is 134217728.
Chart :
| DWORD | DW0 | 12345678 | |
| WORD | WORD0 | 1234 | |
| WORD2 | 5678 | ||
| BYTE | BYTE0 | 12 | |
| BYTE1 | 34 | ||
| BYTE2 | 56 | ||
| BYTE3 | 78 |
| BYTE0 | BIT31 | BIT30 | BIT29 | BIT28 | BIT27 | BIT26 | BIT25 | BIT24 | |
| 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | ||
| BYTE1 | BIT23 | BIT22 | BIT21 | BIT20 | BIT19 | BIT18 | BIT17 | BIT16 | |
| 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | ||
| BYTE2 | BIT15 | BIT14 | BIT13 | BIT12 | BIT11 | BIT10 | BIT9 | BIT8 | |
| 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | ||
| BYTE3 | BIT7 | BIT6 | BIT5 | BIT4 | BIT3 | BIT2 | BIT1 | BIT0 | |
| 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 |
边栏推荐
- Connection query of SQL Server database
- TwinCAT 3 EL7211模块控制倍福伺服
- Solr基础操作8
- MySQL高级篇1
- Solr基础操作6
- What does it mean to open an account online? In addition, is it safe to open an account online now?
- Can't recognize the original appearance
- 面试官:为什么数据库连接很消耗资源?我竟然答不上来。。一下懵了!
- MySQL advanced 1
- 【UITableView】坑一:tableView:heightForHeaderInSection:方法不执行
猜你喜欢

Relevance - canonical correlation analysis

Code analysis platform sonarqube actual combat

@ConfigurationProperties使用不当引发的bug

IDEA工具快捷键的使用

Cloud native enthusiast weekly: cool collection of grafana monitoring panels

云呐|固定资产信息系统管理,信息化固定资产管理

Quick Pow: 如何快速求幂

Finding a job in 2022 is the "last lesson" for graduates

网络方向哪个发展更好?数据通信工程师学习路线分享
![Copy linked list with random pointer [space for time --hash record]](/img/d9/d81e0e4f81174c61275e4affe0777a.png)
Copy linked list with random pointer [space for time --hash record]
随机推荐
Label Troubleshooting: unable to open the marked image
[dynamic programming] - linear DP
[rust weekly library] Tokei - a utility for statistics of code lines and other information
How long will it take to open a mobile account? In addition, is it safe to open a mobile account?
vsftp 与 TFTP 与 samba 与 nfs 复习
【编程题】迷宫问题
Code analysis platform sonarqube actual combat
中小企业签署ERP合同时,需要注意这几点
分布式任务调度 ElasticJob demo
MySQL advanced 2
Quick pow: how to quickly find power
Summarize Flink runtime architecture in simple terms
Solr基础操作15
MySQL advanced 1
克隆無向圖[bfs訪問每條邊而不止節點]
MySQL高级篇2
Solr basic operations 13
Project 1: deploy lamp ECSHOP e-commerce platform
01 backpack problem
云呐|固定资产系统管理的优势,固定资产管理系统有何特点