Jump to content

Recommended Posts

Posted
Hello all I am new to GE and new to scripting. I have a script that i am using to send strings out of the serial portof the HMI. Everything works fine except that I would like to put a delay between the strings as they are sent. For Example, send string1, wait 0.5 sec, send string2. I cant seem to find a time delay anywhere in the help files. Any help is greatly appreciated.
Posted (edited)
Open the "ToolChest" window and the "View Scripting Drawer" select "Sleep" or "WaitUntil" and consult the "Companion" window. For more information on a topic select the topic (i.e. "Sleep") and press "F1". Edited by RussB
Posted
These are the steps I want to put a pause between View.ComPortPut 1, chr(1) & chr(2) & "T01" & CPN & chr(3) & chr(4) View.ComPortPut 1, chr(1) & chr(2) & "T02" & CCN & chr(3) & chr(4) View.ComPortPut 1, chr(1) & chr(2) & "T03" & SDN & chr(3) & chr(4) View.ComPortPut 1, chr(1) & chr(2) & "T04" & VN & chr(3) & chr(4) View.ComPortPut 1, chr(1) & chr(2) & "T05" & PKN & chr(3) & chr(4) View.ComPortPut 1, chr(1) & chr(2) & "T06" & JDN & chr(3) & chr(4) View.ComPortPut 1, chr(1) & chr(2) & "T08" & CPN & CCN & SDN & chr(3) & chr(4)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...