SIEMENS设备驱动
SIEMENS device driver
定义
Definition
本设备驱动用于AKWorkshop系列触摸屏读写Siemens S7-200/300系列PLC寄存器的数据或状态。通过触摸屏中的串行口与Siemens S7-200/300系列PLC的串行口建立起串行通讯连接,从而达到操作Siemens S7-200/300系列PLC的目的。使用本驱动前,请先仔细阅读本章节以及Siemens S7-200/300系列PLC的有关技术说明书。
The device driver is used for AKWorkshop series touch screen to read and write the data or state of Siemens S7-200/300 series PLC register. The serial communication connection is established through the serial port on the touch screen and the serial port of Siemens S7-200/300 series PLC, so as to operate Siemens S7-200/300 series PLC. Prior to use of the driver, one shall carefully read related technical specifications of the chapter and Siemens S7-200/300 series PLC.
如何建立与Siemens S7-200/300系列PLC连接
How to establish connection with Siemens S7-200/300 series PLC
提示:RX——接收、TX——发送、GND——接地
COM1——串口1、COM2——串口2
Prompt: RX - receive, TX - transmit, GND - grounding
COM1 - serial port 1, COM2 - serial port 2
u 软件设置
u Software Settings
ü 在连接设备服务中选择SIEMENS。
ü 在连接设备服务中根据所连接的PLC型号或者支持的协议选择相应项。
ü 保证触摸屏连接参数中通讯参数及PLC站号与所连接PLC保持一致。
ü 所连接PLC设置请查阅Siemens S7-200/300系列PLC相关技术文档。
ü Select SIEMENS in connection device service.
ü Select the corresponding item in connection device service according to the connected PLC model or supported protocol.
ü Guarantee that communication parameters in touch screen connection parameters and PLC station number are consistent with the connected PLC.
ü For settings of the connected PLC, please consult related technical documents of Siemens S7-200/300 series PLC
AK系列触摸屏默认连接参数
Default connection parameters of AK series touch screen
l Siemens S7-200
寄存器名称
| 地址格式 | 输入范围 | 备注 |
I
| dd.o | 0.0~4095.7 | 位:输入映像寄存器,只读 |
Q | dd.o | 0.0~4095.7 | 位:输出映像寄存器 |
M
| dd.o | 0.0~4095.7 | 位:位存储器 |
S | dd.o | 0.0~4095.7 | 位:顺序控制继电器 |
SM
| ddd.o | 0.0~4095.7 | 位:特殊位存储器,SM0.0-SM29.7只读 |
T | ddd | 0~255 | 位:定时器状态,只读 |
C
| ddd | 0~255 | 位:计数器状态,只读 |
VB_Bit | ddddd.o | 0.0~10239.7 | 位:变量存储器的位 |
IW
| dd | 0~4095 | 字:输入映像寄存器,只读,8位寄存器,每个字占用两个地址 |
QW | dd | 0~4095 | 字:输出映像寄存器,8位寄存器,每个字占用两个地址 |
MW
| dd | 0~4095 | 字:位存储器,8位寄存器,每个字占用两个地址 |
SW | dd | 0~4095 | 字:顺序控制继电器,8位寄存器,每个字占用两个地址 |
SMW
| ddd | 0~4095 | 字:特殊位存储器,SMW0-SMW29只读,8位寄存器,每个字占用两个地址 |
VB | ddddd | 0~10239 | 字:变量存储器,8位寄存器 |
VW
| ddddd | 0~10238 | 字:变量存储器,8位寄存器,每个字占用两个地址 |
VD | ddddd | 0~10236 | 双字:变量存储器,8位寄存器,每个双字占用4个地址 |
TV
| ddd | 0~255 | 字:定时器当前值 |
CV | ddd | 0~255 | 字:计数器当前值 |
AIW
| dd | 0~62 | 字:模拟量输入,只读,8位寄存器,每个字占用两个地址 |
AQW | dd | 0~62 | 字:模拟量输出,只写,8位寄存器,每个字占用两个地址 |
Register name
| Address format | Input range | Remarks |
I
| dd.o | 0.0 to 4095.7 | Bit: input shadow register, read only |
Q
| dd.o | 0.0 to 4095.7 | Bit: output shadow register |
M
| dd.o | 0.0 to 4095.7 | Bit: bit memory |
S
| dd.o | 0.0 to 4095.7 | Bit: sequence control relay |
SM
| ddd.o | 0.0 to 4095.7 | Bit: special bit memory, SM0.0-SM29.7 read only |
T
| ddd | 0 to 255 | Bit: timer state: read only |
C
| ddd | 0 to 255 | Bit: counter state: read only |
VB_Bit
| ddddd.o | 0.0 to 10239.7 | Bit: variable memory bit |
IW
| dd | 0 to 4095 | Word: input shadow register, read only, 8-digit register, each word occupies two addresses |
QW
| dd | 0 to 4095 | Word: output shadow register, 8-digit register, each word occupies two addresses |
MW
| dd | 0 to 4095 | Word: bit memory, 8-digit register, each word occupies two addresses |
SW
| dd | 0 to 4095 | Word: sequence control relay, 8-digit register, each word occupies two addresses |
SMW
| ddd | 0 to 4095 | Word: special bit memory, SMW0-SMW29 read only, 8-digit register, each word occupies two addresses |
VB
| ddddd | 0 to 10239 | Word: variable memory, 8-digit register |
VW
| ddddd | 0 to 10238 | Word: variable memory, 8-digit register, each word occupies two addresses |
VD
| ddddd | 0 to 10236 | Double-word: variable memory, 8-digit register, each double-word occupies four addresses |
TV
| ddd | 0 to 255 | Word: current value of the timer |
CV
| ddd | 0 to 255 | Word: current value of the counter |
AIW
| dd | 0 to 62 | Word: analog input, read only, 8-digit register, each word occupies two addresses |
AQW
| dd | 0 to 62 | Word: analog output, write only, 8-digit register, each word occupies two addresses |
·d表示十进制,输入范围为0-9;
·o表示八进制,输入范围为0-7;
·DDD表示块号,输入范围为0-255;
·备注中 字:表示该寄存器只能当字来使用;
·备注中 双字:表示该寄存器在组态当中数据类型必须选择32位;
·备注中 位:表示该寄存器只能当位来使用;
·备注中 只读 表示该寄存器只能读取无法写入;
·不同的设备型号支持的寄存器名称可能不同,范围也可能不一样,
详细名称及范围请查阅所连接设备的相关技术文档。
l d represents decimal system, input range is 0-9;
l o represents octal system, input range is 0-7;
l DDD represents block number, input range is 0-255;
l Word in the remarks: represents the register can only used as word;
l Double-word in the remarks: represents that the data type of the register in configuration must be 32-bit;
l Bit in the remarks: represents the register can only used as bit;
l Read only in the remarks represents that the register can only be read but not be written;
l The names of the registers supported by different equipment model may be different, and the scopes may also be different.
l For detailed name and scope, please consult related technical document of the connected device