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 ... 202 203 [204] 205 206 ... 212
3046
Technical support / Re: Ladder Logic Programming Tutorial
« on: July 18, 2003, 07:19:51 AM »
In order to use AI in our PLC you need to use the TBASIC custom function ADC(n). You can use a clock pulse to periodically execute a custom function that contains the ADC(n) statement to get frequent update of the analog data.

The simulator support AI simulation. You can enter the AI data at the logic simulator screen.

3047
Technical support / Re: Capacitors blowing
« on: July 20, 2003, 11:43:21 AM »
If the capacitor is rated at 50V then it should be able to withstand 24VDc power. Do check the polarity of connection. Connecting an E-cap in reverse polarity to the applied power almost always result in a blown capacitor as the electrolyte conducts current and the self heating of the electrolyte will eventually blows itself apart.

One other possibility may be the authenticity of the ratings on the capacitors. There are some unscrupulous traders in some third world areas that routinely export knock off of brand name capacitors (i.e. counterfeit goods) and what is wrapped under the label may not be a capacitor that can withstand the actual voltage rating.

3048
Technical support / Re: Capacitors blowing
« on: July 18, 2003, 07:25:22 AM »
1) Which PLC model are you using?

2) Which capacitor? Is it the one on the PLC or the capacitor that you have added? What is the voltage rating of the capacitor?  The voltage rating must be higher than the actual voltage applied on the cap.

3) If it is the one on the PLC and you have replaced the capacitor with correct rating and it still blow,then you should send the board back to the supplier or to us for checking to find out the cause of the problem.

3049
Technical support / Re: System Variable Index Out-of-range
« on: July 20, 2003, 11:51:14 AM »
INPUT[n] returns a 16-bit word.

  INPUT[1] represents input bit 1 to 16,
  INPUT[2] represents input bit 17 to 32

  ...
  INPUT[16] represents input bit 241 to 256

The maximum allowable index for INPUT[n] is n = 16.
Going beyond that or if N < 0 will result in run time error.

To read the status of a single bit, it need to use either the TESTBIT or TESTIO command. TESTBIT commands requires you to input the bit position (0 to 15) of the bit within a word. TESTIO command is easier if you have already defined the label name for an I/O on the I/O table.

3050
Technical support / Re: Servo motor
« on: July 21, 2003, 08:38:50 AM »
1) Output 10 volts mean that the PLC has to have analog output 0-10V. Only the T100MD1616+ has an analog output that can drive 0-10V load.

2) RS485 is communication interface and has nothing to do with the analog output. RS485 does not need 10V output. All our M-series PLC have RS485 so any model can use this method to interface to the servo motor.

3) You need to get the servo motor's communication protocol and then write a custom function to output the needed command strings to talk to the SERVO motor. Most likely you will use the NETCMD$ command to talk to the servo motor controller. There are other command available to talk to 3rd party devices: PRINT #, INPUT$, ?INCOMM, OUTCOMM.

4) You cannot use READMODBUS or WRITEMODBUS commands unless your servo motor support the MODBUS protocols.

5) There is no need to connect the PLC to the PC's modem. You just need a serial cable between the PLC and the PC. The PC will need to run the TLServer and have an internet connection. The PC's internet connection can be by any method (dialup, LAN, Wifi. whatever). Once the PC is connected to the internet the PLC become accessible by TRiLOGI client via the Internet.

3051
Technical support / Re: stepper motor heating up
« on: July 22, 2003, 12:19:04 PM »
If your stepper motor is supposed to run on 5V supply then you should not connect it to 24V. Using a resiser to limit the current is not a good solution.

The 2.2K resistor we recommend is for interfacing to the stepper DRIVER input, not the stepper motor itself. You have to try to understand the differences between the two. The stepper driver may be using 5V for its input interface but the stepper motor itself may be powered by 5V, 9V, 12V, 24V or even 48V and these voltages are normally independent or isolated from the 5V interface input.

3052
Technical support / Re: Host-Link Command - Write Inputs
« on: July 24, 2003, 07:15:11 AM »
Input #16 belongs to channel 00. So you should be writing to "WI0080*" to turn ON input 16.  However, note that doing so will also affect input #1 to 15 by turning them OFF momentarily. This may have effect on your ladder logic program.

The correct way of doing it is to first read from channel 00 usign RI00*. Then use the OR mask to set the bit of interest:

      INVAR = INVAR | &H80   ' force bit 15 to ON

Then write it back to the PLC using the

"WI00"+ INVAR (converted to two digit hex)+"*"+CR.




3053
Technical support / Re: Analogue Refresh Rates
« on: July 24, 2003, 08:00:06 AM »
The built-in ADC has repeatability of about +/- 3LSB, which is about +/- 12 counts since the reading is amplified by 4 due to internal scaling.  Input with 0.1uF capacitors should be more stable due to the filtering of switching noise imposed on the analog by the digital side of the PLC.

3054
Technical support / Re: Analogue Refresh Rates
« on: July 21, 2003, 08:28:32 AM »
If you need to read the analog data at high speed then you need to execute a non-differentiated custom function {CusFn} at every scan of the ladder program. Within the custom function you are reading the ADC input value to make a decision. Note that any SETIO or SETBIT command executed within a custom function will not update the physical output until the end of the ladder logic scan. Hence, if you need to turn on an output within this custom function, then you should allow this custom function to end so that the ladder logic can scan to the end of the whole ladder program and the physical output can be updated.  

If you are already doing the above and feel that the input ADC is not updating quick enough, then you may have to remove the 0.1uF capacitor at the corresponding ADC input. The 0.1uF acts as a low pass filter and is meant to filter out the high frequency switching noise but it also means that the frequency response is altered.

Note that ADC input #7 and #8 do not have 0.1uF capacitor. So a quick way to test if the 0.1uF cap is affecting your need for high refresh rate is to move your sensor output to the ADC #7 or #8 and change your ADC(n) command accordingly.



3055
Technical support / Re: PWM outputs
« on: July 25, 2003, 08:04:05 AM »
If you attach a heat sink properly to the metal tab on the MOSFET (IRL530 for MD888+) and have constant air flow pass the heat sink to bring out the generated heat then you should be pretty safe.

Maximum duty cycle allowable is 100% as long as the heat issue is taken care of. At 50% duty, the heat will be reduced by half. Hence you could have a 20% duty cycle for 10A current output which is equivalent to 2A at 100% duty cycle.

Thank you for your nice comments. The M-series PLC's unique Ladder+BASIC langugage is different from the pure ladder logic based PLCs offered by other vendors and we are glad to learn that you do enjoy programming our PLCs.

3056
Technical support / Re: PWM outputs
« on: July 24, 2003, 04:18:26 PM »
Maximum current for for output #7 and #8 for T100MD888 and T100MD2424 are:

1) Peak at 10A
2) Continuous at 2A for 100% duty cycle without heat sink.

The MOSFET actually can take higher current but you will then need to attach heat sink to the MOSFET's metal tab and also provide forced air cooling to the heat sink.

For T100MD1616+, the peak current is 1A and continuos current is 250mA.


3057
Technical support / Re: dc motor wont stop running in setpwm
« on: July 24, 2003, 08:03:59 AM »
Remember, pulse monitoring (PMON) channel #1 is digital input #3 and PMON channel #2 is input #4.

Most likely you have connected to the wrong input. Please read page 1-2 on your User's Manual to see the mapping of the special I/Os to the PLC's regular digital I/Os.

When there is no pulses arriving on a PMON input, it will saturates at maximum timing value and the frequency is reported to be zero.

3058
Technical support / Re: dc motor wont stop running in setpwm
« on: July 23, 2003, 10:36:40 PM »
Can you explain how you program to turn ON output #8? You mentioned PWM and yet you said you want it to turn ON when the INPUT is ON and turn OFF when the switch to the input is OFF? If you are using it as an ON/OFF only output, then you can just treat it like a regular output and not use its PWM feature. e.g.

    IN1                                            OUT1
|--||--------(OUT)

You only use the SETPWM output if you want to use the duty cycle to control speed to the motor. In that case, when the switch is OFF, you should trigger a [DIFD] funciton such that another custom function is executed to SETPWM to 0 duty cycle and the motor will be shut off.

    IN1                                                                RLY1
|---||----------[DIFD]
|
|    RLY1                                                  Fn_#2
|---||---------{dCusF}  ' Fn_#2 SETPWM to 0%

3059
Technical support / Re: dc motor wont stop running in setpwm
« on: July 23, 2003, 06:50:02 AM »
What do you mean by "turning OFF" the PWM channel. Do you mean you set PWM to zero period or do you mean using a physical switch to cut the supply current to the motor?

Note that you can change the speed of the motor by changing the duty cycle provide the frequency of the PWM matches that of the motor time constant. Try a different frequency e.g. 2KHz or 8KHz. The highest frequency (32 KHz) may not always work with all the motors. Some motors require you to add a bypass capacitor in order to be driven by high frequency PWM signal.

3060
Technical support / Re: HVAC Control
« on: July 28, 2003, 11:13:54 AM »
I tried compiling your program, first without defining the label for OUT3 and OUT4 and I got syntax error. After defining the label name for OUT3 and OUT4 in the output table then the program compiled without any problem.

Note that to use SETIO or CLRIO, the label name for the I/O bit that you want to set/clear must be defined in the table. OUT1 does not automatically means output #1. It is just a label name and can be any I/O bit (yes, it can also be a timer or counter bit! although there is little reason for doing so since it can confuse you).


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