Internet PLC Forum

General => Technical support => Topic started by: StefanA on October 28, 2012, 07:32:34 AM

Title: Create a text file
Post by: StefanA 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>"
Title: Re:Create a text file
Post by: support on October 29, 2012, 10:35:51 AM
1) What is the IP address of your PC's Ethernet port?

2) What is the IP address of your PLC?

3) Is the TLServer running?

TLServer must be running in order for the <RemoteFS> to work. The PLC must connect to the TLServer using the IP address of the Ethernet port (not the wi-fi IP address).

Are you able to use TRiLOGI software to connect to the PLC using the PLC's IP address?

Title: Re:Create a text file
Post by: StefanA 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.
Title: Re:Create a text file
Post by: support on October 30, 2012, 12:51:41 AM
Try restarting the TLServer after you have plugged the PLC to the PC Ethernet port. See if TLServer showing up the 192.168.1.2 IP address and if so then you can try the <REMOTEFS> command.
Title: Re:Create a text file
Post by: StefanA 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.
Title: Re:Create a text file
Post by: support on October 30, 2012, 10:46:31 PM
Yes you can get date and time as variables TIME[1], TIME[2], TIME[3] and DATE[1] to DATE[4]. You can certainly use these variables as date and time stamp to write to the TLServer.