×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

S7-300 Detection of Key Position

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

RE: S7-300 Detection of Key Position

(OP)
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




Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources