View unread Posts
View New Posts
View Today's Posts
Forum Search
Login
Register
Login at RoboDK
Welcome to RoboDK Forum
Not a member yet?
Join Us Now!
Remember me
Lost password
Search
Login
Register
Login at RoboDK
Welcome to RoboDK Forum
Not a member yet?
Join Us Now!
Remember me
Lost password
Forum
Portal
Members
Today's Posts
Calendar
Help
RoboDK Forum
>
RoboDK (EN)
>
RoboDK API
>
python program with in variables
RoboDK Forum
>
RoboDK (EN)
>
RoboDK API
>
python program with in variables
Thread Rating:
0 Vote(s) - 0 Average
1
2
3
4
5
python program with in variables
jeas
Junior Member
Posts: 1
Threads: 1
Joined: Jul 2020
Reputation:
0
#1
07-09-2020, 04:55 PM
how can i define a python program with variables.
like "Job_finished (10,2)"
附加文件
Thumbnail(s)
Quick Edit
完整的编辑
Albert
Moderator
Posts: 2,346
Threads: 2
Joined: Apr 2018
Reputation:
127
#2
07-09-2020, 06:02 PM
RoboDK passes arguments as command line arguments. Therefore, you can simply collect the parameters in your Python script using sys.argv. I attached a sample file that uses this concept.
附加文件
SpindleOn.py
(Size: 6.09 KB / Downloads: 4,725)
Quick Edit
完整的编辑
View a Printable Version
Subscribe to this thread
Users browsing this thread:
1 Guest(s)
Copyright © 2023
RoboDK Inc .)
Powered by MyBB
Linear Mode
线程模式