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 - Jane

Pages: [1]
1
Technical support / modbus address
« on: November 02, 2011, 09:12:23 PM »
hi....

To read register '4097' , and assuming that the device has ID = 01 .
then what  the modbus tcp/ip command at a F1616 ladder?


READMODBUS (1,1, XXXXX) ???


one more... to read register '300019'and assuming that the device has ID = 01 .
then what  the modbus tcp/ip command at a F1616 ladder?


READMODBUS (1,1, XXXXX) ???

2
Technical support / analog data....
« on: October 05, 2011, 10:14:21 PM »
Hi,
I am looking on some help to get the function.
On the T100MX, all the A/D are normalized to 12-bit with a range of between 0 and 4096 .  If There are real min data and real max data, Are there the function that the value(between 0 and 4096) is converted to real data.
 i had used to make function to calculate real data.

3
Technical support / Re:modbus rtu
« on: July 12, 2011, 12:29:49 AM »
i am sorry..

To read register 403073 , and assuming that the device has ID = 02 and has an lan port, and ip address ="192.168.10.130".
then  correct  the below modbus tcp/ip rtu command? but i can not recieve at all.
no ascii. i want to communicate thru modbus tcp/ip rtu

-----------------------------------------------------------
PRINT #4 "<RemoteFS 192.168.10.130:502>"
PRINT #4 READMODBUS (4,2,3072)  
PRINT #4 "</>"
delay(200)
FOR I = 1 to 10000
   A$ = INPUT$(4)
   IF LEN(A$) <> 0 RETURN: ENDIF
NEXT
IF LEN(A$)=0  
     SETLCD 3,1, "Fail to Synchronize"
     PRINT #4 "</REMOTEFS>"      
     RETURN
  ENDIF
-------------------------------------------------------------

i can communicate thru modbus rtu(serial)
port #11(rtu), but port #1(ascii)---rs232
port #13(rtu), port # 3(ascii)-rs 422

4
Technical support / modbus tcp/ip
« on: July 10, 2011, 07:23:22 PM »
Hi,
I am looking on some help to get comunication between a F1616 and a Cymon PLC thru Modbus tcp/ip..

To read register 403073 , and assuming that the device has ID = 01 and has an lan port, and ip address ="192.168.10.130".
then what  the modbus tcp/ip command at a F1616 ladder?

i want to receive a example source

5
Technical support / modbus rtu
« on: July 07, 2011, 07:53:11 PM »
Hi,
I am looking on some help to get comunication between a T100MD+ and a Cymon PLC thru Modbus RTU..

To read register 403073, and assuming that the RTU has ID = 01 and has an RS232 port, then i can connect the PLC's RS232 port directly to Cymon PLC's RS232 port and use the built-in READMODBUS command such as:

SETBAUD 1,6
DM[1] = READMODBUS (1,1, 363073)
but i can not recieve.
what will be the format to read/write to/from that parameter?


6
Technical support / Run-Time Error in Fn#7
« on: November 18, 2009, 06:57:36 PM »
NO error when complie or test but occur error in the field sometimes.
why occur error? I don't Know.
please. teach me that i mistake or how to way resume next to error.


example)
1.Run-Time Error in Fn#7
   Error:Illegal Opcode-please inform Manufacture
   Fn#7
      I=4   
      SETIO FLAGF_04
      CLRIO FLAGS_04

      M=DM[1000+10*I+1]    K=DM[1000+10*I+2]   
      IF M>0 AND DM[I*10+1]>0 THEN CALL FNF_ONE ENDIF

2.Run-Time Error in Fn#68
   Error:System Variable Index out-of-range


   Fn#68
      DM[503]=9
      IF DM[108]=1 OR DM[108]=2 THEN
         CLRBIT OUTPUT[2],2
      ENDIF
      CLRIO FLAGSBR_08
      SETIO FLAGSBR_09
      DM[411]=DM[411]+1
      DM[514]=DM[514]+1

      IF DM[71]=DM[507] THEN
         DM[507]=0
         I=7   K=13   L=14   M=1   N=1
         IF (DM[I*10+8]=1 OR DM[I*10+8]=2) AND (DM[I*10+5]=1 OR DM[I*10+5]=2) THEN
            DM[I*10+8]=1
            DM[I*10+5]=1
      
               IF DM[I*10+7]=1 THEN
                  SETBIT OUTPUT[M],K
                  CLRBIT OUTPUT[N],L
                  DM[I*10+7]=0
               ELSE
                  SETBIT OUTPUT[N],L
                  CLRBIT OUTPUT[M],K
                  DM[I*10+7]=1
               ENDIF
         ENDIF
         IF (DM[I*10+8]=1 OR DM[I*10+8]=2) AND (DM[I*10+5]=0) THEN
            DM[I*10+8]=1
            SETBIT OUTPUT[M],K
         ENDIF
         IF (DM[I*10+5]=1 OR DM[I*10+5]=2) AND (DM[I*10+8]=0) THEN
            DM[I*10+5]=1
            SETBIT OUTPUT[N],L
         ENDIF
         CLRIO FLAGSBR_09
         SETIO FLAGF_07
         DM[I*10+10]=1
      ELSE
         DM[I*10+10]=0
         DM[503]=0
         IF DM[503]=0 AND TESTBIT(INPUT[2],5)=0 AND TESTBIT(INPUT[2],6)=0 AND TESTIO(FLAG_SBR_L)=0 THEN
            SETIO FLAG_SBR_L
            DM[502]=2
            CALL FNS_06_SBR
         ENDIF
      ENDIF

7
Technical support / i want send Hex data to com port1
« on: June 13, 2008, 01:23:18 AM »
hi

i want send and receive Hex data to com port1 with protocol 10(ie creating user own custom protocol.)

i want send hex data " &HE1 &HE1 &HFE &H01 &H01 &H01 &HE3 &H53 &H53 &H0D"

i coded that

'------send hex data to com port1

A$=HEX$(&HE1)+HEX$(&HFE)+HEX$(&H01)
A$=A$+HEX$(&H01)+ HEX$(&H01)
A$=A$+HEX$(&HE3)+HEX$(&H53)+HEX$(&H53)+HEX$(&HOD)

B$=NETCMD$(1,A$+"~")

'-------receive hex data from com port1
E$ = INPUT$(1)




How can i send and receive hexa data?


8
Technical support / Remote File Service with vb
« on: October 21, 2007, 10:56:19 PM »
Hello.

I am trying to read and write files not using TLserver  from PLC to the PC with the XServer in it i.e. <WRITE> and <READ> function(Remote File Services).  I tried examples but had no luck.  All i need to do is  move data in file form to and from DM memory.  Can you helo or suggest better examples with visual basic? I use the XServer without using the username and password.


 
 

9
Technical support / TBasic problem...
« on: October 18, 2007, 12:23:13 AM »
Hello.....

I need to periodically sample read the input chanel  value into some Strings(A$ to $Z)......In TBasic

E.g. every 0.5s, run the following function in TBasic:

   A$=input[1]
   B$=input[2]
   .......
but it's wrong

I can't fine in the manual  
I want to know  TBasic cause that RVS0101


And

In visual basic program with xserver.......

I send any host link command such as "@01RV$D25*" and there will be the response as "@01RV$00061*"  from the PLC. Can I know variable name in the response as "@01RV$00061*" .....
it is not variable name In "@01RV$00061*" ..

10
Technical support / XServer hardware with vb6.0
« on: October 16, 2007, 12:46:42 AM »
Hello Support Guys,

Can I know how can we interface the XServer hardware with VB6.0. Can I use the winsock control that come together with VB 6.0 ?
Show me the sample code or manual with VB 6.0 that the XServer hardware with VB6.0.

Pages: [1]