Завершен

Parse a python sting into 3 varibles

#Parse The GRBL Status

The command i poll via python serial

# Poll GRBL for status .2 seconds max

[login to view URL]("?".encode())

gstatus_out = [login to view URL]().decode() # Wait for GRBL response with status return message

grbl_rawstatus = [login to view URL]()

print(grbl_rawstatus) # Debugging

The response i get from GRBL

<Idle|WPos:-0.3543,0.0000,0.0000|FS:0.0,0|WCO:0.3543,0.0000,0.0000>

or

<Idle|WPos:-0.3543,0.0000,0.0000|FS:0.0,0|Ov:100,100,100>

or

<Idle|WPos:-0.3543,0.0000,0.0000|FS:0.0,0>

What i need from the data.

grbl_status = "Idle" It always appears.

grbl_wpos = "-0.3543" It always appears.

grbl_wco = "0.3543" It only appears sometimes.

I need to store these into variables as strings for later use in my program.

Навыки: Python, Arduino, Linux

Показать больше: program data input, program send message xfire, program data entry excel, program similar message parse, program data strcture, program data sqlite database, 2005 program data import export, program data pdf excel, program translate message english morse code java, gui program input message display, iphone application text display program data, java program implements message board, outlook macro data message, reuter java program data feed, business opportunity data message board, wwwclicknearnnet employment data message board, data.parse python, python 2.7 or 3.6 for data science, write python program that asks user to input their name along with age and store data in a text file

О работодателе:
( 1 отзыв ) Strafford, United States

ID проекта: #29386676

Поручен:

(304 отзывов(-а))
7.5