Jump to content

Recommended Posts

Posted
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
Posted (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 by Teropod
Posted
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....

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...