Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - StefanA

Pages: 1 [2]
16
Technical support / Re:PRINT #8?
« on: April 16, 2013, 10:21:49 AM »
Thanks, now it works like a charm.  

17
Technical support / PRINT #8?
« on: April 15, 2013, 10:53:27 AM »
I have some problems using the the PRINT #8 command. I want my Nano-10 to write a text file containing html code to it's extended memory. But how do I handle statements like <HTML> or <HEAD>? I can't get the PLC to write anything enclosed by < >. It works in simulation mode with the programming software but not
with a real PLC. I have used the PRINT#4 command to generate a web page stored on my PC with out any problems. Can PRINT#4 handle  <statement>
and PRINT #8 can't?

18
Technical support / Modbus/TCP
« on: January 15, 2013, 09:54:41 AM »
Found a free software on the web called Advanced Hmi (some kind of software HMI)  which I try use together with my nano-10 trough Modbus/TCP. I can display and write values (holding register) back and forth but I can't control any outputs or internal relays from the software. Toggle a relay in the plc and make a lamp symbol blink on the screen works fine but I can't use a switch symbol to toggle a relay or output in the plc.  Asked Advanced Hmi support about my problem and they did a successful test with a slave simulator and the address 00258 (nano output 2 if I'm not mistaken). Any suggestions about what I doing wrong?  

19
Technical support / Re:virtual LCD display
« on: November 17, 2012, 04:17:00 AM »
I have continuous update so that's not the problem. It seems as the  virtual LCD display can't handle symbols like > <. I tried display the text: One <two> three, and it won't display the <two> part.

I can't reset  a timer(bit) started with timerPV as long as it value is 0. Start the timer again and under the time it's running you can clear the bit but not when it's reached zero.  

20
Technical support / virtual LCD display
« on: November 16, 2012, 08:34:27 AM »
I can't display a string returned from the The NANO-10 plc on the virtual LCD screen. It shows up on the online-monitor LCD but not on the web page display. I want to check that a text file transfer is complete by getting  a <OK> from the plc.

I also have some trouble understanding how the timer functions work.  I use the timerPV command in a function and  when the timer reaches 0 the timerbit goes high. How do I reset the timerbit? I tried using the settimerSV and clrbit command but it won't work.

21
Technical support / Analog input
« on: November 14, 2012, 09:46:56 AM »
Want to connect a thermocouple signal conditioner with a isolated 0-5V output to my NANO-10. Are the more then one way to do that? The analog 0V output from the conditioner must have the same potential as the NANO-10 power supply 0V, right?

22
Technical support / Re:Create a text file
« on: October 30, 2012, 11:32:56 AM »
Now it's working, Thanks. Another question. Is it possible to transfer Time and Date variables into a DM or sting. So you can use it like a timestampe.

23
Technical support / Re:Create a text file
« on: October 29, 2012, 12:26:48 PM »
PC IP address: 192.168.1.2

PLC IP address:192.168.1.5

Internet Trilogi Server is running, but a different IP number is displayed: IP adress1=192.168.1.119:9080.

I can download programms and monitor the PLC with Trilogi software.

24
Technical support / Create a text file
« on: October 28, 2012, 07:32:34 AM »
Hi,

I Want the nano-10 to create a text file containg data from DM1 to DM50.

I tried using the code below but no file is created in the fileservice folder. I have a direct ethernet port to port
connection between the pc and plc. What could I be missing?


PRINT #4 "<RemoteFS 192.168.1.2:9080>"   // have also tried localhost IP: 127.0.0.1:9080
PRINT #4 "<WRITE TestFile.txt>"
FOR I=1 To 50
PRINT #4 DM;" ";
NEXT
PRINT #4
PRINT #4 "</RemoteFS>"

25
Technical support / Re: Customizing the nano-10 webpage
« on: September 08, 2012, 02:25:17 AM »
Ok, thank you for the info.

26
Technical support / Re: Customizing the nano-10 webpage
« on: September 07, 2012, 09:55:27 AM »

To bad that customization is not supported. This stuff isn't easy for a average joe like me. I'm not quite sure what I did exactly when I added more boxes. I changed one
thing in the drawrelay() function (as you pointed out in your replay). Have been fiddeling with the doclick() function aswell but got stuck.




function drawRelay(){
  var el
  var ioname;      // replace space with "&nbsp;"
  var value = RELAY[9]  // Internal Relay #129 to 140
  for (i=0;i<14;i++) { //-------------------------I changed this line
    el = document.getElementById("IO"+(i+1))
    if (el==null) {
      ioname=""
      for (j=0;j<IOname.length;j++) {
           ch=IOname.charAt(j)
           if (ch==' ') ioname += "&nbsp;"
           else ioname += ch
      }



function doClick(el) {
  var xmlhttpClick= createXMLhttp()
  clickBusy =1
  clearInterval(intervalID);
  if ((el.id).substring(0,2)=="IO") {  
    var rly = RELAY[9]

    var pos = el.id.substring(2)-1
    rly ^= bitMask[pos]          // toggles bit
    cmd="HOSTLINK/WR10"+d2h(rly)+timestamp()
    clearInterval(intervalID);
    xmlhttpClick.open("GET",cmd,true);
    try {
      xmlhttpClick.onreadystatechange=function() {
       if (xmlhttpClick.readyState==4) {
         checkSvrResp(xmlhttpClick,"doClick")
         clickBusy=0        
         doUpdate()
         getRelay()


Is Relay[9] the same as relay channel 10, as in cmd="HOSTLINK/WR10"+d2h(rly)+timestamp()

Repeat code? Please explain.

27
Technical support / Customizing the nano-10 webpage
« on: September 06, 2012, 10:15:35 AM »
Having some trouble with customizing the nano-10 webpages. I want to add more "clickable boxes" for controlling internal relay bit 137 and upwards.

I managed to display some boxes on the webpage and I can turn them on and off from the plc program. But how do I toggle them from the webpage? If I understand the comments in javascript file M, 512 internal relays are accessable.

28
Technical support / Re:Nano-10 webpage
« on: August 14, 2012, 03:54:16 AM »
Ok, storing files in the nano-10 is not an option. I would like to use the nano?s web pages  as a simple form of Hmi. Just connect the plc directly to a pc?s Ethernet port.  No internet access.  Can I store graphics  in some folder on the pc and use with the web pages.

// Stefan

29
Technical support / Nano-10 webpage
« on: August 13, 2012, 11:09:31 AM »
Can I store graphic files (backgrounds etc) on my pc to use with the nano-10 webpages or must they be stored on a webserver for nano-10 to find them?

// Stefan

Pages: 1 [2]