Host Engineering Forum

General Category => General Discussion => Topic started by: maciek on October 04, 2020, 11:26:28 PM

Title: quick question
Post by: maciek 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
Title: Re: quick question
Post by: franji1 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)
Title: Re: quick question
Post by: maciek on October 05, 2020, 05:55:48 PM
very cool again you guys are awesome.