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

Pages: 1 ... 201 202 [203] 204 205 ... 212
3031
Technical support / Re: SETLED LED Display
« on: July 02, 2003, 09:16:28 PM »
Although TRiLOGI has the SETLED command, it was never implemented in the hardware.

What is the interface to drive your 4 digit LED? Some LED has RS232/RS485 interface which the PLC can send data to be displayed. If your LED is just plain LED segments without driver, then you may use the PLC output to drive the LED segments if it is a common anode type. You will need current limiting resistor to limit the current to the LED. Note that in this case, each digit requires 7 or 8 (if including decimal) outputs.

You can then construct the segment pattern that correspond to each digit 0..9 by store them into a lookup table in memory and when you need to display a number, just take the corresponding output pattern to send to the outputs to drive the LED segments.

3032
Technical support / Re: T100MD+ Counter Problems
« on: July 04, 2003, 08:15:46 AM »
If you use HSC then each channel takes up two inputs.

If you want to save on inputs and your frequency is low, then you could define input 3 as an interrupt input and then in the custom function that handles this interrupt, you can use a variable as a counter:

C = C+1

each time there is a transition in the input. That way input 4 will still be available for normal input.

If you use ordinary input, then how fast it can accept the input pulse stream depends on the scan time of the program which is dependent on the program length and how complex the custom function is. It is less deterministic compared to using INTERRUPT or HSC.

3033
Technical support / Re: My concern about using PLC
« on: July 04, 2003, 08:24:30 AM »
First of all, the T100MD+ verion 5.x software does not allow you to upload program from the PLC so you are safe.

DOS TRiLOGI version 4 has the ability to upload the ladder program but not the custom function from the PLC.  However, you can use put in a program upload/download transfer password using TL41.exe which can prevent unauthorized attempt to upload the ladder logic and it also restrict transfer of new program to the PLC without the password.  This capability was not brought to Version 5.x to avoid confusing user with the TLServer username/password system.

TRiLOGI available for free download from our website are educational version and do not have ability to communicate with the PLC so that should not be not of concern to you.

3034
Technical support / Re: Excel Link Functionality
« on: July 06, 2003, 09:02:59 AM »
There isn't a demo version of ExcelLink yet.  The ExcelLink is actually not a DDE server per se. It is actually both a client to the Excel's DDE and a client to TLServer. Based on the setup file that the user configure, it will automaticallly takes data from the PLC and put into the MS-Excel and vice versa.

ExcelLink only access the PLC data as words or strings. You need to write your own Excel Macro to extract the on/off state of individual bits.

If you want to take advantage of the TLServer, the best way is to use a Java API library that we provide. You can then write your own program in Java either as an application or as an applet. The advantage is that you can access the PLC from anywhere with a network connection to the TLServer.

P/S: TLServer was written to run on a PC that is already networked. Corporate users normally don't welcome a program that automatically dials and connect itself to the internet without user intervention as it compromises the company's security policy.

3035
Technical support / Re: Reading Modbus-RTU device
« on: July 06, 2003, 03:49:22 PM »
You are right that READMODBUS is implemented using MODBUS function 03 and WRITEMODBUS is implemented using MODBUS function 16. These two functions are considered MODBUS Level 1 functions and are the most fundamental MODBUS command that any MODBUS master has to support.

If your device requires other function, then you can implement it using INCOMM, OUTCOMM and CRC16 (for PLC with firmware revision r44 and above only). We have posted a sample program that you can download from the following link:

http://www.tri-plc.com/trilogi/modbusFunction04.zip

This sample implements the function 04 and is tested to work with a slave T100MD888+.

3036
Technical support / Re: Reading Modbus-RTU device
« on: June 17, 2002, 09:09:30 AM »
You should use READMODBUS command to read 1 register at a time. Use it twice at two different addresses to read two registers:

DM[1] = READMODBUS(13, 1, 0)
DM[2] = READMODBUS(13, 1, 1)

The READMODBUS (13,xx,yy) means to use RTU command to read from COMM port #3 (RS485). xx is the ID of the RTU device, yy is the starting address of the register. The CRC16 is automatically generated by the READMODBUS command and need not be added.

3037
Technical support / Re: T22H-NPN reset problem
« on: July 06, 2003, 05:28:52 PM »
Does the PLC output appear as ON during online monitoring? If online monitoring shows that your output is off, yet the output LED turns ON, it means that the output driver has probably blown.

The output drivers on T22H-npn are controlled by the ULN2003A. You can try to swap the ULN2003A that controls output 1-4 with the other chips and see if the output problem has shifted. If so, it confirms that the output driver is fried.

The most likely reason for the output driver to blow is over current. Wrong polarity connection to the PLC's power supply input can also knock out the output driver.

You can purchase the ULN2003A driver chip easily from any Radioshack or any local electronics store,  or you can purchase it from us.  Please send your request to sales@tri-plc.com if you wish to purchase the ULN2003A chip.

3038
Technical support / Re: WRITEMODBUS
« on: July 15, 2003, 11:24:31 AM »
Please find out from the manual or your equipment supplier whether Register #1 is the MODBUS holding register #1(in Modicon this is usually labelled as 40002). If so, then you can just use:

WRITEMODBUS  13, 1, 1, &H8

13 - First parameter means to use RTU to write to COMM3.
1 - Assume slave ID = 01
1 - Register #1, which correspond to 40002
&H8  - hexadecimal representation of the number 0008H


3039
Technical support / Re: Write Memory
« on: July 15, 2003, 12:36:57 PM »
Write cycles is per memory location. So if you write 8 data to 8 different locations, each location only undergoes 1 write cycle.

When you transfer program to the PLC, each complete transfer is considered 1 cycle.

Anyway, the program EEPROM and data EEPROM occupies different memory locations so they are independent of each other.

3040
Technical support / Re: Write Memory
« on: July 16, 2002, 08:46:33 AM »
Do you mean you want to write to the non-volatile memory? You can use the SAVE_EEP command to save the data to EEPROM memory. These will not be lost after power off. When power on, read the data back using the LOAD_EEP command. There are 1700 words (16-bit) available in the M-series PLC which can be used to store non-volatile data. Note that reading and writing to EEPROM are slow and there is a fixed life cycle (about 100,000 erase/write cycles) so you should exercise necessary caution when using the EEPROM memory.

3041
Technical support / Re: Stepper Motors Not Working!
« on: July 17, 2003, 08:02:18 AM »
I tried out your program and managed to get pulses from both output #5 and #6 simultaneously. Did you observe the pulse output from both your output #5 and #6?

Since I don't have two stepper motor driver on hand  I observed the wave forms on an oscilloscope but did not notice any unusual pattern. So I both channels should be able to work simultaneously. They are of different direction since one is +ve direction and another in -ve direction so their respective direction output (#1 and #2) will be turned ON/OFF accordingly.

3042
Technical support / Re: Wiring assembly for A/I
« on: July 17, 2003, 08:34:58 AM »
You can purchase a D-sub connector with a crimp end which allows you to quickly crimp 15 conductor ribbon cable to it and you can then split the ribbon cable to get to the signals. Check www.digikey.com and search for D-sub crimp connector.

If there are enough demand (say 100 pieces at least) we can make a board with screw terminals and connect to the T100MD888+ PLC's analog port via ribbon cabled D-sub connectors.

T100MD1616+ and T100MD2424+ both have screw terminals for their ADCs.

3043
Technical support / Re: Frequency/DI to Analog
« on: July 18, 2003, 06:53:22 AM »
I believed you have emailed the same question to us, but our reply to your email address was unsuccessful. The reply is the same as below:
----------------------------------------------

Please read page 1-1 of the User's Manual which show
you the mapping of the pulse measurement input with the
physical input. Please note that PM channel #1 is input
#3 and PM channel #2 is input #4. So your pulses must
feed through input #3 and #4 for their respective PMON.
Also the voltage of the pulse input must be compatible
with the PLC input. Did you observe that the input
logic status where the pulse stream is connected has
been turned  ON and OFF repeatedly when performing
online monitoring?


3044
Technical support / Re: Frequency/DI to Analog
« on: June 25, 2003, 07:20:26 AM »
You can always use the

IF TESTIO(inputlabelname) THEN
....
ELSE
.....
ENDIF

The above test the condition of the DI, and based on the result execute the correct routine. Please read up on the IF THEN ELSE instruction. These are basic programming that you have to learn. There is no "CAN" solution to all programming problem in the world.

3045
Technical support / Re: Frequency/DI to Analog
« on: June 24, 2003, 02:41:44 PM »
It is unbelievably easy to perform frequency measurement using the T100MD pulse measurement capabiliy ;D . All you need to do is to  execute the PMON 1 function once to enable input #3 as a frequency measurement input. Once enabled, you then simply use the PULSEFREQUENCY(1)  function to read the frequency of the pulses appearing at the input #3. E.g.

   F = PULSEFREQUENCY(1)
  SETDAC 1,F       ' direct output without scaling.

You can measure from 1 Hz to 10000 Hz. You can either execute the above function every scan or use a clock pulse to periodically read the pulse frequency.

The value read into F can then be scaled to whatever value you want or output directly to the analog output using the SETDAC command as shown in the example above.

However, IMHO, using the analog I/O as interface between the PLC and the microcontroller is not exactly  the best method. You could actually design your own communication protocol in the microcontroller so that the frequency value read by the T!00MD+ PLC can be transfered to the microcontroller using the RS485 port without incurring any potential inaccuracy introduced by the analog interface.

Pages: 1 ... 201 202 [203] 204 205 ... 212