S7-300 Detection of Key Position
S7-300 Detection of Key Position
(OP)
Can any one help out there, Is there any way I can detect where the Key position on the front of the PLC. So that this can be shown in a GEFanuc Cimplicity SCADA HMI.
Current Setup is:
S7 CPU-315 (not DP)
Siemens RS232/MPi Link Cable
Kepware OPC S7/MPi Drivers
GEFanuc Cimplicity Plant Edition
Example code in Stl,or Ladder would help.
Thanks in Advance
Andy
Current Setup is:
S7 CPU-315 (not DP)
Siemens RS232/MPi Link Cable
Kepware OPC S7/MPi Drivers
GEFanuc Cimplicity Plant Edition
Example code in Stl,or Ladder would help.
Thanks in Advance
Andy





RE: S7-300 Detection of Key Position
By calling the following code
CALL "RDSYSST"
REQ :="S_HI_Bit"
SZL_ID :=W#16#232
INDEX :=W#16#4
RET_VAL :=MW114
BUSY :="S_Out_Bit"
SZL_HEADER:=#SZL_HEADER
DR :=P#DB8.DBX 35.0 WORD 20
This loads the key information into DB8
Lamps are then the following bits:
PLCBATF DB8.DBX 18.0
PLCDC5V DB8.DBX 1.0
PLCFRCE DB8.DBX 14.0
PLCRUN DB8.DBW 44
PLCRunFlash DB8.DBX 7.0
PLCSF DB8.DBX 2.0
PLCStop DB8.DBX 10.0