Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

S7-300 Detection of Key Position

Status
Not open for further replies.

AndyHill

Electrical
Nov 19, 2002
18
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
 
Replies continue below

Recommended for you

I have found out how to do this,
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




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor