Internet PLC Forum
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
Internet PLC Forum
»
General
»
Technical support
»
Strange output
« previous
next »
Print
Pages: [
1
]
Author
Topic: Strange output (Read 11706 times)
DAlgie
Newbie
Posts: 16
Using PLC for aircraft controller
Strange output
«
on:
July 28, 2004, 03:44:39 PM »
Hello, when using a T100MD-1616 PLC, I am trying to get it to output PWM to a small servo. I have followed the book letter by letter. I have the output as a sink, but never get any kind of output signal at all. It all runs ok in the simulation. I never see the LED on the board light up either. Anyone can tell me what my ladder rung should have on it that I'm missing? I use a slow clock signal to time it between another rung, and output with a custom function with the PWM statement in it.
Logged
support
Global Moderator
Hero Member
Posts: 3174
Re:Strange output
«
Reply #1 on:
August 01, 2004, 11:02:20 PM »
If you don't connect anything to the PLC output, and then execute a statement such as SETPWM 1,5000,5000, you should see the output #7 light up partially. Output 7 is PWM 1 and output #8 is PWM2.
Once you verify that the PWM output is working properly you can then proceed to connect it to your load and it should function as expected.
Logged
Email: support@triplc.com
Tel: 1-877-TRI-PLCS
DAlgie
Newbie
Posts: 16
Using PLC for aircraft controller
Re:Strange output
«
Reply #2 on:
August 02, 2004, 10:37:43 AM »
Output 7 is PWM 1?? Gee, that would explain why the LED on 7 was lighting up, I was connecting to channel 1!! Thanks, OK, I'll go try it now.... !!
Logged
DAlgie
Newbie
Posts: 16
Using PLC for aircraft controller
Re:Strange output
«
Reply #3 on:
August 03, 2004, 05:54:18 PM »
Yes, that worked, thanks. A question with the PWM, I need a 1 to 2 ms pulse, I have set the PWM at 62 Hz, and use a pulse between 90 to 160, what should the syntax be, do I need a zero in front, must it be four digits, etc.
Logged
support
Global Moderator
Hero Member
Posts: 3174
Re:Strange output
«
Reply #4 on:
August 09, 2004, 11:24:31 AM »
The PWM output only support 8 frequencies. One of them is 63 Hz so you can execute:
SETPWM 1, 5000,63
That should give you a square wave pulse output at about 63 Hz and 50% duty cycle.
Logged
Email: support@triplc.com
Tel: 1-877-TRI-PLCS
Print
Pages: [
1
]
« previous
next »
Internet PLC Forum
»
General
»
Technical support
»
Strange output