Hello Guest it is March 28, 2024, 04:52:17 PM

Author Topic: Read write to a DRO ??  (Read 13789 times)

0 Members and 1 Guest are viewing this topic.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Read write to a DRO ??
« Reply #20 on: June 02, 2014, 03:57:20 PM »
Here is the answer to THAT question(;-)

local Pword = "FrogLog"
local Pnum = 0

while Pnum <3 do
local Panswer = wx.wxGetPasswordFromUser("What is the Password ? ")
if Panswer == Pword then
            wx.wxMessageBox("The Password is " ..Panswer)
else
            wx.wxMessageBox("Wrong Password")
            Pnum =(Pnum+1)
    end

 end
wx.wxMessageBox(" Call YOUR Supervisor for HELP! ") 
Re: Read write to a DRO ??
« Reply #21 on: September 22, 2014, 04:21:37 PM »
sorry to 'interrupt'  but i have a question about . . .

re : drop them in the PLC scripter . . .


where is this 'scripter'.

on my system i can READ the lua script under the operator menu  , but can't find it with the LUA editor.

Offline smurph

*
  • *
  •  1,544 1,544
  • "That there... that's an RV."
    • View Profile
Re: Read write to a DRO ??
« Reply #22 on: September 22, 2014, 06:20:54 PM »
Edit the screen set and click on the top item in the tree.  Then click on the event icon in the properties.  It will let you edit the PLC script.

Steve
Re: Read write to a DRO ??
« Reply #23 on: September 23, 2014, 09:00:49 AM »
thanks for info on writing to PLC script

if they published Mach4 for Dummies, i would have to buy  . . .
Re: Read write to a DRO ??
« Reply #24 on: September 23, 2014, 02:04:31 PM »
re: PLC Script
thanks again for the hint. 
i owe you and many others here a big 'Thank You'

Say . . .if someone was so dumb , that they saved a PLC script with a bug in it  (lets say an endless loop with a wxMessageBox command)
of course i  know the program would lock up , and the backups would not work for some reason.
how would they locate that file to destroy it , or edit it.

of course that person would have looked everywhere and opened everything with no luck  . .  .
would that dummy have any way to stop the PLC script ?
Re: Read write to a DRO ??
« Reply #25 on: September 23, 2014, 02:22:20 PM »
looks like your not one to read all the fine details I and others have posted, lol

http://www.machsupport.com/forum/index.php/topic,27162.msg191822.html#msg191822


but you might also try a adding a     -e   to the end of the autoload  it goes into the edit mode first.

C:\Mach4Hobby1953\Mach4GUI.exe /p Mach4Mill -e

Offline smurph

*
  • *
  •  1,544 1,544
  • "That there... that's an RV."
    • View Profile
Re: Read write to a DRO ??
« Reply #26 on: September 23, 2014, 02:23:13 PM »
That is truly the definition of getting stuck between a rock and a hard place.  :)

Start Mach4GUI in edit mode.  Mach4GUI /p <ProfileName> /e

Replace ProfileName with the name of your profile.  
Re: Read write to a DRO ??
« Reply #27 on: September 24, 2014, 08:28:37 AM »
thanks, that did it.