FlowCode + Robot Arm

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
mahmoudmagdi
Posts: 5
Joined: Sun Feb 10, 2019 3:58 pm

FlowCode + Robot Arm

Post by mahmoudmagdi »

Hi,

I got Robot Arm from one week, I setup Flowcode8, I read "Flowcode8_GettingStartedGuide" to learn the basics of flowcode.

I am also read "Robot Arm Curriculum BL0032" but I stopped because I can't know how to control the Robot using FlowCode.

At page 17 Robot Arm Curriculum BL0032

The information about how to load the "RA_FC_Manual control" ?

Could you help me?

mahmoudmagdi
Posts: 5
Joined: Sun Feb 10, 2019 3:58 pm

Re: FlowCode + Robot Arm

Post by mahmoudmagdi »

At page no. 18 in "Robot curriculum"

I supposed to:
Create anew Project and choose
2- Choose Robot Arm from Mechatronics menu then added it to 3D panel
3- modify the mode if I want to control the Robot directly or control the simulation.
4- Create a loop with two Macro.

when I did I get this error, Also the detalis of first Macro

It this step right? Could you help me?
Attachments
f8.JPG
f8.JPG (103.41 KiB) Viewed 3662 times

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: FlowCode + Robot Arm

Post by medelec35 »

Hi mahmoudmagdi,
The error relates to you not entering values in Expression text box for Index (Parameter 1)
and Position (Parameter 2)
Once both values are entered, the error should disappear.
Martin

mahmoudmagdi
Posts: 5
Joined: Sun Feb 10, 2019 3:58 pm

Re: FlowCode + Robot Arm

Post by mahmoudmagdi »

Thanks

About the first Macro

where he get " GetByte() " ?
Attachments
S.JPG
S.JPG (64.24 KiB) Viewed 3653 times

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: FlowCode + Robot Arm

Post by medelec35 »

The GetByte is referring to a variable that is called adc and is a byte (0 to 255)
The value of adc is determined by the position of the pot.
If not already added you will need to add it.
The GetByte is found within the ADC component.
Martin

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: FlowCode + Robot Arm

Post by medelec35 »

View, Project Explorer:
GetByte.png
(41.23 KiB) Downloaded 1188 times
Martin

mahmoudmagdi
Posts: 5
Joined: Sun Feb 10, 2019 3:58 pm

Re: FlowCode + Robot Arm

Post by mahmoudmagdi »

I am really appreciated your response :D

After that I only Press " Run" or there is another set I must do.

Also to control in real Robot, I must change the mode in LCD of Combo Board to "API" mode?

Is there Document or Video explain this process step by step it will be appreciated

mahmoudmagdi
Posts: 5
Joined: Sun Feb 10, 2019 3:58 pm

Re: FlowCode + Robot Arm

Post by mahmoudmagdi »

when I press " Run "

This message appeared.
Attachments
WhatsApp Image 2019-02-12 at 3.31.26 PM.jpeg
WhatsApp Image 2019-02-12 at 3.31.26 PM.jpeg (131.84 KiB) Viewed 3620 times
f9.JPG
f9.JPG (101.38 KiB) Viewed 3620 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: FlowCode + Robot Arm

Post by Benj »

Hello,

It looks like the Arm is receiving commands which is a good sign. Maybe add a 5 second delay after the first start icon and this may help to allow the Arm time to connect and establish communications before sending commands to the Arm. Hopefully this is all that is required.

Post Reply