⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 siemens_mpi.def

📁 本源代码演示了通过串口利用MPI协议与西门子PLC S7-300系统通讯的实现方式。
💻 DEF
字号:
LIBRARY SIEMENS_MPI
EXPORTS 
OpenPLC		@1
ClosePLC	@2

;I functions,read only

PLC_R_I		@3
PLC_R_IW	@4
PLC_R_ID	@5

;Q functions

PLC_R_Q		@6
PLC_W_Q		@7
PLC_R_QW	@8
PLC_W_QW	@9
PLC_R_QD	@10
PLC_W_QD	@11

;M functions

PLC_R_M		@12
PLC_W_M		@13
PLC_R_MW	@14
PLC_W_MW	@15
PLC_R_MD	@16
PLC_W_MD	@17

;DB functions

PLC_R_DB	@18
PLC_W_DB	@19
PLC_R_DBW	@20
PLC_W_DBW	@21
PLC_R_DBD	@22
PLC_W_DBD	@23

;time and counter read only functions

PLC_R_T		@24
PLC_R_C		@25

;Data change and error message functions

Gp_to_Float	@26
Float_to_Gp	@27
ErrorMessage @28
SwapShort	@29
SwapLong	@30
New_ss		@31

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -