News:

  • August 10, 2026, 05:55:25 AM

Login with username, password and session length

Author Topic: quick question  (Read 9250 times)

maciek

  • Sr. Member
  • ****
  • Posts: 95
quick question
« on: October 04, 2020, 11:26:28 PM »
this below was an answer to my earlier posted question i had. Is there a way to  use it in a ladder view?
is there a way to just copy that and paste it in my program just to test it.


STRGE $Now.Hour 7
ANDLT $Now.Hour 19
OUT C42
« Last Edit: October 05, 2020, 07:20:20 AM by maciek »

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3839
    • Host Engineering
Re: quick question
« Reply #1 on: October 05, 2020, 08:14:58 AM »
In general, you would use Tools->Insert Instructions from File

You minimally need a PLC designation in the top of the text file
Code: [Select]
PLC BX-DM1E
(or whatever)

followed by your code.

The dialog lets you decide where you want it to go.  If you put your block cursor at the rung you want to insert it BEFORE, then do the Tools->Insert, the dialog should default to that position (you can tweak the location all you want).  Even if it shows up somewhere else, do a CUT/PASTE once it's in Designer.

but you could enter it from Ladder
>= contact (STRGE) followed by a < contact in series (ANDLT) going to an OUT coil

-] >= [------] < [---------(OUT)

maciek

  • Sr. Member
  • ****
  • Posts: 95
Re: quick question
« Reply #2 on: October 05, 2020, 05:55:48 PM »
very cool again you guys are awesome.