omronlib.bas
来自「vb与三菱PLC的通信例子 对初学者很有用的」· BAS 代码 · 共 13 行
BAS
13 行
Attribute VB_Name = "Module1"
Public SXD$
Public RXD$
Public plc_station_head$
Public Function bin16_to_dec&(bin_data$)
hex4$ = bin16_to_hex4(bin_data$)
dec_value& = hex4_to_dec(hex4$)
bin16_to_dec& = dec_value&
End Function
Public Function bin16_to_hex4$(bin_data$)
hex_byte$ = ""
bin_data$ = "0000000000000000" + bin_data$ '
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?