pszczepan Posted October 17, 2007 Report Posted October 17, 2007 Hi ! I have a project where the carriage goes forward and backward. signal goes from encoder. I would like to make dynamic object - carriage below arrows on the picture, which will be connected with date from encoder and it will goes up and down on the NS. How to make it? - word lamp and divide distance per 10 different shapes - it will not be fluent - macro or something. What is your idea guys, any example? thanks Pawel Quote
Teropod Posted October 18, 2007 Report Posted October 18, 2007 (edited) Macro moveparts(n,x,y), with readhostb(D,h,ch,addr,r,n) could be usefull and to diplay it with control flag display indirect is how would i do it. Edited October 18, 2007 by Teropod Quote
beegee Posted October 18, 2007 Report Posted October 18, 2007 I have made this with a macro: (this is an up/down movement for objects 3,4 and 6 + ar left/right movement for object 5) ReadhostW($W20,1,100,207,2); $W20= 37+(600-$W20)/7; Moveparts(3,137,$W20); Moveparts(4,139,$W20-22); Moveparts(6,140,$W20+3); $W21=137-$W21/5; Moveparts(5,$W21,101); I have the macro triggered on a bitlamp I set off-screen so I can change the update speed or even hold it still.... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.