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

Pages: 1 [2]
16
Technical support / READING A COUNTER
« on: January 08, 2003, 08:43:40 AM »
I'm trying to read the value of a counter. The Master is a T100MD and the slave is a T40. I set the counter to 400.
1. Are the T40's counters only decremental counters?
2. I want to read the value of the counter every minute and save the value in a variable or DM, and after a read, send a comand to reset the value of the counter (400 ).

I use a dCusF with a 1min contact.

B$ = NETCMD$(3,"@02RU0C")         ' Read SPEED-COUNTER (#13) preset value
 IF LEN(B$) = 0  RETURN: ENDIF     ' Not getting response
DM[102] = HEXVAL(MID$(B$,6,2))

C$= NETCMD$(3,"@02WU0C0000")            ' CLEAR SPEED COUNTER PRESET VALUE

where is the problem if that is posible.

17
Technical support / PRINTERS
« on: January 15, 2003, 07:54:05 AM »
Hi,
I want to print caracters, so I am looking for printer to do it. However, I'd like to send different  ASCII caracters with a T100MD via RS485 to every printer. I need to know the specification should have the printers. Do they need IP address? How the PLC difference every printer?

Philip

18
Technical support / APPEND
« on: January 27, 2003, 12:19:34 PM »
Hi,
I have these funtions:

CusFn#1
IF DATE[2]>9 AND DATE[3]>9
H$= STR$(DATE[2])+"/"+STR$(DATE[3])
ENDIF
IF DATE[2]<10 AND DATE[3]>9
H$= "0"+STR$(DATE[2])+"/"+STR$(DATE[3])
ENDIF
IF DATE[2]>9 AND DATE[3]<10
H$= STR$(DATE[2])+"/0"+STR$(DATE[3])
ENDIF

dCusFn #2
PRINT #1 "<APPEND M3"+H$+".txt>"
PRINT #1 "RUNNING ";B$;" ";G$;" ";F$;" ";STR$(A,4)
PRINT #1 "</>"

But it doesn't open a new file with M3+date.txt
Where is the problem?

19
Technical support / Communication
« on: January 29, 2003, 08:59:38 AM »
Hi Leon,
I connected the rs485- optic fiber converter, that you check. I have this funtion.

'Map Relay 33-48 from Slave#2 (MO#3) to Relay 1-16 in Master
'-----------------------------------------------------------

C$ = NETCMD$(3,"@02RR04")      'Read Slave#2 relays 33-40
IF LEN(C$)=0 RETURN: ENDIF      'Not getting response
DM[100]=HEXVAL(MID$(C$,6,2))      'Keep the value temporarily.

C$ = NETCMD$(3,"@02RR05")      'Read Slave#2 relays 41-48
IF LEN(C$)=0 RETURN: ENDIF      'Not getting response
DM[101]=HEXVAL(MID$(C$,6,2))      'Keep the value temporarily.

RELAY[1]= (DM[101]*256)+DM[100]

But it doesn't change the status of the relay 1 at the master. When I monitor the master PLC, at the variable c$ some time shows me values like @02R004.
and the dm[100] sometimes change the value such as -6,4,-48.
I don't know how to solve this problem.
Philip

20
Technical support / LCD 420
« on: February 10, 2003, 05:33:04 AM »
Do you know where can I find information about some special caracters that I can use with the LCD420?

I don't remember where do I find a table with some caracteres like CHR$(12)  No cursor at the screen.

Philip

21
Technical support / Port
« on: February 12, 2003, 04:35:40 AM »
Is possible connect the COMM1 directly to a Parallel com of a matricial Printer? If that is p[ossible, what is the correct wiring?

22
Technical support / DAC
« on: February 11, 2003, 10:54:49 AM »
Hi,
I want to control the speed of a motor using a AC inverter. The inverter has a 0-5V speed control, so I want to use the DAC output from a T100MD888. With the HMI the operator could change the speed. I'm saving the speed value (0 to 500) in a variable (D). I need that the 0-500 will be proportional to 0-5 VDC. How can I program the DAC?

23
Technical support / EXCELINK
« on: February 28, 2003, 08:36:20 AM »
I have two problems:
1. When I run the ExceLink without name, it run well. However,I created a file with the name RA2 at the FileService folder, so I put at the file name C:\Trilogi\TL5\FileService\RA2 and none at the sheet name. When I run the ExceLink, it shows me the error Unable to open file C:\Trilogi\TL5\FileService\RA2 .

2. Sometimes when I run the ExceLink, it send a Illegal Operation and this is the detail:
JAVAW caused a general protection fault
in module DDEML.DLL at 0002:00004c3b.
Registers:
EAX=00004cf6 CS=1657 EIP=00004c3b EFLGS=00000246
EBX=01471e58 SS=1a8f ESP=00007b50 EBP=00007b64
ECX=000003e1 DS=164f ESI=00001e58 FS=5d67
EDX=81e90000 ES=4ece EDI=0000006c GS=0000
Bytes at CS:EIP:
26 8b 35 26 8b 55 02 89 56 f6 66 83 7f 36 00 74
Stack dump:
21181e58 00000000 00000000 02a50000 00007b92 06357b92 1e581657 5d67016f 00b0016f 00b403e1 00000000 00d020cf 005500e5 0000002c 00007ce4 bff72118

How can I fix them/

24
Technical support / barcode readers
« on: February 17, 2003, 04:55:54 AM »
Hi,
I connect a barcode scanner to com1.
I use these funtions:
1. Funtion
setbaud 1,3
2. funtion
A$= INPUT (1)
A= VAL(A$)
IF A>0
B=A: ENDIF

The PLC doesn't show any information when I read the barcode.
The barcode reader has many configurations, so I don't know if some parameters have to be changed. This is how it is configuarated (none,9600,8,1,even,CR) the others are options.
HANDSHAKING ? NONE     RTS/CTS, ACK/NAK, Xon/off
BAUD RATE ? ? ? ? 9600        19200,4800,2400
DATA BIT ? ? ? ? ? ? ? ? ?8 ? ? ? ? ? ? 7
STOP BIT ? ? ? ? ? ? ? ? ?1 ? ? ? ? ? ? 2
PARITY ? ? ? ? ? ? ? ?even ? ? ? ? ? ? Odd, Mark,space,none
TERMINATOR ? ? ? ? ? CR ? ? ? ?none,cr/lf,lf,h tab,stx/etx,eot

I checked the barcode reader using the HyperTerminal and it read the value of the barcode.

How can I solve the problem?
If I want to use the COMM3, the only part that I need to change is the setbaud 3,3 and the A$=INPUT(#).

Philip.

25
Technical support / ADC VOLTS
« on: October 26, 2003, 06:30:52 AM »
HI,
I HAVE A T100MD1616, I'M TRYING TO USE THE ADC TO SENSE THE TEMPERATURE USING A THERMISTOR 10K @ 25 C.

I CHECK THE VOLTS AT THE +5 VOLTS AND IT'S ONLY 1.2 VOLTS. I ADJUSTED THE AVcc POT BUT IT ONLY CHANGES FROM 0.5 TO 1.2 VOLTS.
I DON'T KNOW IF I HAVE TO CONNECT THE 24 VDC FROM THE POWER SUPPLY TO THE +12 to 24 V DC INPUT THAT IS BESIDE THE A/D IO TERMINALS.

THANKS

Pages: 1 [2]