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

Pages: [1]
1
Technical support / Stepper Motors Not Working!
« on: July 17, 2003, 05:17:14 AM »
Hi, need some stepper control advice!

I wrote 2 function to control two stepper motors running at the same time at different direction:

Funtion M1:
STEPSPEED 1,1000,20
STEPMOVE 1,500,8

Function M2:
STEPSPEED 2,1000,20
STEPMOVE 2,-500,9

When I activate both function together only one motor managed to move.

I'd tried run both motors seperately (Out#5, Out#6) on seperate program without any problem. So I can ruled out the motor driver or program error.

Did anyone have similar experience? Please advice. Thanks.




2
Technical support / System Variable Index Out-of-range
« on: July 19, 2003, 07:56:53 AM »
Hi,

I recieved the "System Variable Index out-of-range" error during simulation run when I use INPUT[n] in TBASIC function where n is 28 to 48

I discovered if I changed to INPUT[1] or INPUT[2] the error is gone.

Is this a bug in the TRiLOGI?

Physically my PLC have 48 inputs and I need to use the command INPUT[n] to monitor input#28 to #48.

Please help. What to do to overcome this error?

Thanks.

3
Technical support / Host-Link Command - Write Inputs
« on: July 23, 2003, 06:01:28 PM »
Hi,

I wrote a VB program talking to PLC using Host-Link Command. I wanted to control input#16 and input#17 from the VB GUI. The technical information from the user manual on how to send a Host-Link command to write a input is too brief. So my guessing:
a) Write a logic 1 to input#16:
     "WI0180*" + CR
b) Write a logic 1 to input#17:
     "WI0201*" +CR

But I suspect my guessing is wrong.

Please advice. Thanks!    

Pages: [1]