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.


Topics - jbryant87

Pages: [1]
1
Technical support / Saving a CSV File
« on: November 12, 2018, 03:51:43 AM »
I need to create and save a CSV file onto a network connected PC using an FX1616BA PLC

Now i have never done anything like this before so i dont even know where to start with the commands.
What i am trying to do is the following:

1. Create a file, the filename will be the value of dm[100] (MAN SERIAL)
2. take data from registers then save them to the CSV file eg>
dm[102] = "SERIAL NO1"
dm[103] = "SERIAL NO2"
dm[104] = "SERIAL NO3"
dm[105] = "RESULT1"

CSV file will look like this:

MAN SERIAL, INLET "SERIAL NO1", FILTER "SERIAL NO2", OUTLET "SERIAL NO3", LEAK RESULT "RESULT1, "TIME" , "DATE"

Is this something that can be done?

2
Technical support / DM32 Problem
« on: October 26, 2018, 06:09:52 AM »
I am sending a 32bit unsigned integer from a weintek HMI to a FX1616ba to location 4x1001 (dm[1])
The data is being sent as part of a recipe transfer. So 2 words will be sent.
I dont think the words are overflowing correctly as the numbers im seeing dont make sense

eg. sending 985 from HMI, dm32[1] reads 64552960 but dm16[1] reads correctly

sending 95674 from the HMI, dm[32] reads 1975123969
dm16[1] reads 30138 dm16[2] reads 1
Is there a conversion i can do to get these numbers to make sense?




3
Technical support / PRINT #4 Shutting down
« on: January 09, 2018, 07:06:04 AM »
I use the below code to allow a leak test device to print data into strings to evaluate.
The device will send several lines, but the PLC will shut down the port after recieving the first line.
is there a way to keep the port open and recieve all the data?
This is the code used below:

G$=""
J$=""
G=0
H=0


while G=0 and H<20
   PRINT #4 "<TCPCONNECT 192.168.100.004:10001>"
   J$=""
   DELAY 200
   if status(3)=1 then
      I=0
      while G=0 and I<=20
         delay 200
         J$=INPUT$(4)
   if len(J$)>0 then
            G=1
           G$=J$
endif
I=I+1
endwhile
ENDIF
PRINT #4 "</>"    ' close connection before reconnecting
H=H+1
   '
IF G=0 THEN
DELAY 500
ENDIF
endwhile

4
Technical support / week number
« on: January 04, 2018, 12:40:55 AM »
Does anyone know of a quick method of using the RTC to generate a week number 1-52?

5
Technical support / Display issues
« on: February 19, 2017, 07:24:42 AM »
I have some long rungs in my program and i-TRILOGI 6.51 cuts the right hand side of the screen off, it is impossible to select anything after the cutoff.
The only way to select a coil is to delete some on the rung, change it, then put the rung back in.
Has anyone else seen this issue. I have attached a pic to show the problem
I am running wondows 10 on a HP elitebook.
Also does anyone else have a strobe effect whenever online monitoring, and is theere a way to fix this

6
Technical support / DM TO ASCII
« on: February 04, 2017, 07:46:05 AM »
I am trying to convert the information contained in data memorys back into ASCII
My HMI sends an ASCII code 20 characters in length into 10 data memory locations in the PLC (DM116 - DM125)
There should be 2 ASCII characters contained in each data memory but I can only retrieve 1 from each.
Using A$ = CHR$(DM[116]) i can get the first character but cannot retrieve the second.
Is there a method of converting the 10 words back to ASCII, reassembling them, and putting them into A$

Failing that can i simply send the ASCII data directly into A$ using MODBUS?

Pages: [1]