You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

Reply
 
Thread Tools Display Modes
Old January 28th, 2007, 12:45 AM   #1
PLC_talk
Member
India

PLC_talk is offline
 
Join Date: Oct 2006
Location: p
Posts: 50
How to enter S7 constants

Hello everyone,
I am using S7 PLC . I would like to know how do I enter a constant in DINT format.
I am trying to enter a constant value of say 3 to a logic instruction DI_R.
I couldn't find any way to represent it (keeps showing RED).

2. Is there any way I can get the Date & time DT type into Memory area?

Any suggestions?
  Reply With Quote
Old January 28th, 2007, 12:54 AM   #2
PLucas
Member
England

PLucas is offline
 
PLucas's Avatar
 
Join Date: Apr 2002
Location: Gillingham Kent
Posts: 1,743
Quote:
Originally Posted by PLC_talk
I am using S7 PLC . I would like to know how do I enter a constant in DINT format.
Precede the number with L#, EG, L#3

Date and Time extraction using SFC1 has been covered many times in the past on this forum, do a search for the keyword SFC1 and you should find the information you are after. You could also try searching for 'Date & Time'.

Paul
__________________
There are 10 types of people in this world..
Those who understand binary and those who don't!
  Reply With Quote
Old January 29th, 2007, 09:09 AM   #3
PLC_talk
Member
India

PLC_talk is offline
 
Join Date: Oct 2006
Location: p
Posts: 50
Thanks Paul
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
COnverting S5 Real (KG) to S7 Real smersh LIVE PLC Questions And Answers 9 August 8th, 2011 10:53 AM
Siemens S5 and S7 Dual Masters for Profibus daveswerld LIVE PLC Questions And Answers 15 December 16th, 2008 03:15 AM
S7 & Controllogix over Ethernet beethoven_ii LIVE PLC Questions And Answers 15 March 13th, 2008 04:49 PM
New to S7 and MP270 NetMan LIVE PLC Questions And Answers 19 July 25th, 2006 11:38 AM
S7 IEC timer - RESET functionality. JesperMP LIVE PLC Questions And Answers 6 May 28th, 2004 04:26 AM


All times are GMT -4. The time now is 07:58 PM.


.