MrPLC Member
  • Content count

  • Joined

  • Last visited

Everything posted by slcman

  1. S7-400 IP Address Setting

    With Step 7, you need to tell the software where you are connected if you want to bridge thru the plc. Assign a pg/pc in your project. regards
  2. S7 1200 WEBSERVER

    Have you declare your variable with awp in you web page?  In your plc, the tag checkbox Visible in HMI engineering must be checked.   Here is a demo web page which include few write option. Just cut/paste in a text file, rename it *.html   regards   <!DOCTYPE html> <html lang="en"> <head> <!-- Web page must use utf-8 charct set --> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link rel="stylesheet" href="styles/MainStyle.css" /> <link rel="stylesheet" href="styles/Write.css" /> <script src="scripts/MainFunction.js"></script> <script src="scripts/PLCTagFunction.js"></script> <title>Siemens 1200 web demo</title> <!-- this block is used in case of internet explorer version <9 is used. Only v9 include HTML5 --> <!--[if lt IE 9]> <script type="text/javascript"> document.createElement("header") document.createElement("footer") document.createElement("section") document.createElement("aside") document.createElement("nav") </script> <![endif]--> </head> <body> <header> <img src="images/Unit.jpg" alt="S7-200 unit" />This is a <b>SIEMENS</b> 1200 demo.</header> <hr> <div id="MainDiv"> <h4>Different syntax could be use for read and write variable</h4> Counter value is :=MW102:<br> <!-- *************** Use push button as variable input************* --> <!-- AWP_In_Variable Name="bResetPB" --> <form method="post"> <input name="bResetPB" type="hidden" value=1> <input id="ResetOnePB" type="submit" value="Reset counter"> </form><br/> <!-- *************** Use select list as variable input ************** --> <!-- AWP_In_Variable Name="bResetPB" --> <form method="post"> <select name="bResetPB"> <option value=1>Reset to zero</option> <option value=0>Do not reset</option> </select> <input type="submit" value="Send request"> </form><br/> <!-- *************** Use radio pb as variable input *************** --> <!-- AWP_In_Variable Name="bResetRequest" [Use="bResetPB"] --> <form method="post"> <label for="bResetRequest">Do you want to reset counter?</label> <input type="radio" name="bResetRequest" value="1" checked="checked">yes <input type="radio" name="bResetRequest" value="0">no<br/> <input type="submit" value="Send request"/> </form><br/> <!-- *************** Use text for enter numeric value *************** --> <!-- CSS style is applied to input field for validate numeric value <!-- AWP_In_Variable Name="iSpeed" --> <form id="NumFieldForm" method="post"> <label for="iSpeed">Speed reference: </label> <input name="iSpeed" type="number" min="10" max="1800" step="10" value="900" title="enter a value between 10 and 1800." required> RPM<br/> <input type="submit" value="Send new speed"> </form><br/> <form id="NumFieldFormwText" method="post"> <label for="iSpeed">Speed reference: </label> <input name="iSpeed" type="text" value=":=MW100:" required> RPM<br/> <input type="submit" value="Send new speed"> </form><br/> <!-- *************** Use cursor for enter numeric value *************** --> <!-- AWP_In_Variable Name="iSpeed" --> <form method="post"> <label for="iSpeed">Speed reference: (:=MW100:) </label> <input name="iSpeed" type="range" min="10" max="1800" value=":=MW100:"> <input type="submit" value="Send new speed"> </form> </div> <footer> Snapshot take at <script>WriteDate();</script> <div id="FooterDiv"> Created by slcman </div> </footer> <script>PageLoad()</script> </body> </html>    
  3. Personnaly, I really don't like the Studio 5000 interface. I tried a job with those screen and I return it and I bought a PVP+7. 
  4. Hi, I've got a Microsoft Surface that use Tightvnc to control screen (PV7) remotly. Everything work perfect exept one thing: jog function. When we press and hold a jog button, nothing append. Once we release the button, machine jog for a very short period. It's look like the screen handle touch like a mouse up event. If I use a mouse instead of touch, it's work, so this is not a panelview / plc issue.  Any idea? Please don't tell me to disable right click on long press in windows menu, I already did this since day 1. This is not my issue. thanks for your help
  5. Hi Fab, to read the active user in your HMI I suggest to use macro in Runtime security menu. i.e. create a DINT and assign a number for each user. Your macro need to write the number that correspond to user in this DINT. To read the login level, use Function - CurrentUserHasCode(letter) in your macro. i.e.  If CurrentUserHasCode( A )  Then 1  Else  If CurrentUserHasCode( B ) Then 2 .... and so on You can create one macro that set 2 tag in your plc. One for user, next for login level. Global connections allow many data exchange but there is nothing regarding user and login level.   Concerning the alarm ack button. I'm not sure I understand excatly what you need. The is few connection in Alarm Setup --> Optional trigger connections   I hope I help a little.
  6. FTVME Parameter Files

    Parameter file can only pass local or plc tags. It cannot pass value, only tag, so you will need to create string tag if you wants to assign string to parameters. The syntax to use parameter in your object is #1 you don't have to add {::[PLC} and } at the end.  regards
  7. FTV ME Parameter tag to PLC

    I've used parameter few time. I don't think you can use it in macro. It is design to be used in screen only, you set the parameter file to use in the goto screen pb. If you need to write a value in macro when a screen open / close, use startup macro in display settings --> behavior tab.
  8. use trend to find out what cause the low dc bus error. i.e. trend with dcbus voltage, drive speed, drive command and so on...
  9. open factorytalk ME application manager, try to backup file and then restore it. You can post your backup file as well, we will try to open it.
  10. plug a mouse in a usb port. Then you will be able to operate the screen. Goto terminal setting --> touch icon --> calibrate tab. Follow the calibration procedure. If the screen still not responding, it will need to be replaced. regards
  11. CX-Devlopper test mode problem

    Hi, I use a NS5 touch screen and a CPM1A plc for a small project. I have the controller but I don't have the touch screen for now. I want to test my application with test icon. My comm setting is in Comm setting.jpg file. The window I have after I clic test icon is in Test.jpg file. My problem is I can't select a host type serie C controller (for CPM1A), only CV or CS1 are available. Can I simulate my touch screen program? I use CX-Designer v2.01 and CX-Programmer v7.01 Thanks
  12. Hi all, I need to change the gain in a PID instruction while pid is running. I can't just write new gain in KP variable (it will be too easy), it make a hudge bump in CV..not really what we need (see picture). Rockwell suggest to put pid in manual (.SWM) then change the gain and put back to auto. It's work but not fast enought, it's look like pid take time to calculated few thing on manual to auto transition. I'm sure there's a way to do this, I can't be the first who need to do that. Thanks for help  
  13. 1761-NET-AIC+ is not a protocol converter, it's just a RS232 to RS485 converter. To use Modbus you need to change comms driver in Channel configuration (see picture). However, since you only have 1 port, you'll need get DF1 comm to monitor/upload/download. To do that press and hold special hidden comm button for 1 sec (picture), then port protocol will return to default. Once programming job is done, use the same button or laptop to return to modus comms.
  14. You should consider to use the alarms feature in the hmi. Alarms does exactly what you want to do. Multistate indicator are not design to show alarms. This is relatively simple to use, clic on alarms in factory talk (left tree). Then select tag who contain your error message. To keep it simple, you should assign on bit per alarms. Next, on message tab you enter the text you want to display while the bit is set. Once done, you have to create a page to display alarms or use the default [alarms] screen.  this is the global idea, just ask if you need more detail. regards
  15. Sorry if my answer was rought a little, very often I got answer from people who doesn't know what they are talking about. They just answer without answer, it's look like it's not your case Wow thanks for reply. I do programming since 25 years, however I do not pretend to be an expert on pid subject. My experience is more related in manufacturing not process. I've really ask Rockwell on how to change P while loop running and they recommend to put loop in manual. This is strange, I already change loop parameter on the fly with Schneider M258 and Siemens plc. Maybe it's wrong to put it in manual..honestly this is a good new and it make sense. I'm not always impress by AB tech connect. You're right about the trend, it's look like a classroom environement. I made it with Studio 5000 emulator v30 for testing and try to figure out what to do before the visit to customer. I'm sure you understand this, production environnement is not a good lab. I'm actually try to figure out how to fix this loop. Altough emulator is not real life, it help to test the idea. You're right again about the very small value of I. The loop have to respond very fast. It drive a 125Hp fan and the load is very variable. PV is pressure. Now let's talk about real life, real trend.  PLC: 1769-L33ER v30 Instruction is PID (not PIDE), it run in a periodic task at 75ms.   Fan is used as exhaust from combustion from boiler. At any time a boiler should start and create hudge change while purging. The idea was to use an higher P while purging. But if you have better sugestion GO I like to learn. This is a trend at normal operation, you can see variation from press transmitter. They will always have some variation on press because of combustion. We ran few test without any boiler in run and pressure signal is quite linear, combustion create fluctuation, we have to deal with. This is why I use an average value. light blue is instant reading from pressure transmitter blue is average value I calculated and use for pid, hmi and so on red is PID.ERR tag brown is speed command 0-100%  green speed feedback 0-100% dashed white is setpoint *pay attention, pen are not on the same Y scale   Thanks again for your time, this kind of forum is very usefull for people like us, I'm member since 2005, each time I got an answer I try to answer about 10 questions to keep to forum alive.   regards
  16. We don't care about I & D, my question is "I need to change P while pid is in run". I can't change P direct in the tag LOOK THE TREND! Rockwell also says it's not a good idea. plc: 1769-L33ER any suggestion?
  17. As far I can see, you may get the input inderctly but not the slot number. I haven't try with real plc but the following code didn't prompt any error. Wish it help  
  18. Dynamic String Size

    I used Cognex bar code reader with AB. I copy the bar code string in a string tag by using the .ResultLength variable (see picture). As you can see in the screen shot .LEN or ResultLength does not include null. regards
  19. Hi all, I want to start to learn C++ for build some apllication on window Xp. I check few info on MSDN microsoft web pages but still have question. - What is .NET framework ??? I see this expression everywhere! It is the new way to program in C? - It is possible to communicate with plc for get some data (thru serial or ethernet). Do I need driver or soft package? I know VB is more userfriendly but I earing C++ is more powerfull. Thanks
  20. Simatic HMI

    You have to set limit in tag. As exemple, in Portal, go to HMI tags folder, then select a tag, goto properties --> range. You can set a constant or tag as limit. Numeric entry doesn't have limit, tag does.
  21. How to connect CP1L USB

    I need to download/upload program to a CP1L-M30DT1-D. When I plug plc window detect driver and install it, at the end of the installation I got CODE10. Then OMRON SYSMAC PLC appear in device manager but when I try to do an upload, I got Failed to connect with plc message. OS: VMware with WinXP Pro SP3 I also try it on Win7 Pro x32 CxProgrammer: 9.52 I guess the step for connect to this plc is: - select Auto Online - Direct Online - USB connection - [CONNECT] Do I miss something *note that the plc is not new and I'm not 100% sure it work. However, I can see Power and run light ON (green) and an output is flashing (because of the program). Thanks for read
  22. S7-1200 PID compact min process value

    Thanks Ross I really appreciate your help. I didn't see Substitute output value field because my plc firmware is v3.0 and that firmware cannot use PID v2. I'll upgrade firmware and try with PID v2. regards
  23. Hi, I use PID_Compact instruction to control a MM440 drive speed. I would like to set a min output value of this instruction as I can do with S7-300 serie. Please don't tell me I can use min drive speed...I know that! I want to have a min speed set in pid instruction. Pid config screen seems the place to do that but when I enter a value greater than 0 in Advanced settings -> Output value limits, I got a red X and portal says Enter a value between -100.0 and 0.0 I can't beleive we can't do that simple thing! Any idea? The only workaround I've found is to write my min speed to my output tag if it is less than min speed. It works but PID take a long time to react when it increase the speed from 0. i.e. output tag is set at 50%(min speed) nothing is changed while pid increase speed from 0 to 50%.
  24. S7-1200 PID compact min process value

    first thanks for answer. Could you please tell me where you enter "Reaction to error - Substitute output value". regards