News:

SMF - Just Installed!

Main Menu

Wagon Component Code with Comment

Started by KCP_Robin, May 14, 2015, 05:01:11 AM

Previous topic - Next topic

KCP_Robin

I'm trying to Edit The wagon component to have 5 positions.. not just the left and right. but having a hard time to understand the code.. Adding a comment on code will help me to understand it fully,, I'm not familiar with the C# programming any help would be very Appreciated... Thank You in Advance..

EasyPLC_Master

Hello, here is attached a new component called Wagon2 and a machine showing how to use.
The wagon have 5 positions to go, (always in the same axis, but could be changed easily).
Copy the file Wagon2.cmp in the Components folder and Wagon Exmaple.maq in MyMachines folder.
The code is more explained.

Hope help you!

[attachment deleted by admin]

KCP_Robin

 ;D Thank you Very Much! .. Will Try Now...

KCP_Robin

I've downloaded the files and ran it,, and I notice that there's something wrong happening if from position 4/5 to Position 3..
Trying to solve it now.. Thank you again for providing sample :)

KCP_Robin

Solved it.. under Position 3 request.. in the direction part..
x_Posit[1] should be changed to [2]..
Thank you again..

EasyPLC_Master