Transistor

MrPLC Member
  • Content count

    121
  • Joined

  • Last visited

Community Reputation

2 Neutral

About Transistor

  • Rank
    Sparky

Profile Information

  • Country Ireland
  1. How do we debug scripts in CX-Supervisor Developer?

    Thanks for that. I was coming to the same conclusion. Two problems: 1. Most of the scripting is done in CX rather than VB. How do I use MsgBox in CX? It seems to be a VB control. `@VBSCRIPT`? I can use LogEvent to output a string but I haven't figured out how to include a variable. (Again, this is CX scripting.) FOR i = 0 TO 9 LogEvent( Recipe[i] ) 'Works. LogEvent( i & Recipe[i] ) 'Doesn't work. LogEvent( ValueToText(i) & Recipe[i] ) 'Doesn't work. NEXT I'm a bit unclear as to which functions can be used in CX-Supervisor Script. Any ideas?
  2. I'm modifying an existing application and need to expand some recipe arrays. Runtime is throwing an error on the last element of the original array (elements 0 to 137 and I have expanded to 199). Is there any way to add a breakpoint into the code to see what's happening? How does anyone else do it? Many thanks.
  3. I'm testing installation of a custom-built machine. The equipment is at room temperature of about 19°C for a couple of weeks but the PLC is reading 25 to 29°C from the J-type thermocouple inputs. I suspect the machine builder has used copper cable to wire the thermocouples back to the I/O point. He has also used what appear to be regular M12 connectors to make the connection. Configuration of the input module does not appear to be correct. We're in 50Hz-land. I can't find any wiring instructions in the A-B documentation but I suspect that we should at least be using compensating cable and proper J-type connectors near the heater zones. Any pointers?
  4. Good catch (on the missing assignment ':'). Today I've been programming in Codesys STL, VBA and Python. I got mixed up! Fixed.
  5. This isn't urgent but a TIME value is failing a comparison test for me. t_delay : TIME; // Declaration ----- IF t_delay <= 0 THEN     t_delay := T#3S END IF If I modify the variable value to T#2S the IF sets it back to T#3S. Internally the TIME variables are integer. Why would a compare not work as I intend? Many thanks.
  6. It appears that Windows 7 SP1 is required. I've installed that and have progressed into the install.
  7. OS: Windows 7 Ultimate 64-bit running on VMware virtual machine. Installed software: Studio 5000 V21.0 Licence: Concurrent (served by licence server on another PC). On starting Setup.exe from the VM's desktop I get the message     "Studio 5000 does not support this version of windows" Any ideas how to proceed?
  8. How would you solve this problem in ladder?

    Just a hint: Create a counter with a preset of '2' and increment the count with the start button. Q1. How will you control when the output turns on? Q2. What is the simplest way for the stop button to re-initialise everything. Q3. Can you guarantee that STOP will override START? Two lines of ladder should do the trick. Note: it is best practice to wire the STOP button using a normally closed contact arrangement. That way, if a wire falls off or gets cut the circuit will stop.
  9. I'm printing extracts of my code for change control records. The print quality is terrible as it seems to output low-resolution JPEGs to the PDF or XPS files rather than vectored graphics and TrueType (or other vectored) fonts. See the attached close-up showing the artifacts. Exporting in this fashion also makes the resultant PDF unsearchable. I can't find any configuration options for this. Is there a fix?
  10. 4-20mA applied to 500 ohm resistor.

    That sounds fine other than 4 mA into 500 Ω will give you 2 V and not 1 V.
  11. That was the prompt I was looking for. Wago have a library component at http://www.wago.us/appnoteadmin/libraries23/WagoLibNTP/public/WagoLibNTP_en.pdf. OSCAT (Open Source Community for Automation Technology) may have addressed the daylight savings offset in this: http://www.oscat.de/index.php?option=com_jdownloads
  12. In my application the LMC automation controller will be calculating date-based lot codes. I would like to synchronise the internal clock with a time server such as pool.ntp.org. I can't find any info in the Schneider-Electric SoMachine help files or on the web. Does anyone know if this is possible?
  13. Can FX2N expansion modules be used with FX5U?

    Thanks for the follow-up. We used the correct FX3 modules in the end.
  14. There is, thank you, but it looks OK and is the same as another unmodified panel (as far as I can tell). Build runs OK.    
  15. I'm editing a dual language project for an NA5 HMI. It's working fine except for the message at startup. To modify the project I've had to update the firmware on the HMI. I'm using Sysmac Studio 1.15. Startup language seems to be set correctly. Any ideas?