Host Engineering Forum

General Category => CTRIO and CTRIO2 => Topic started by: mcnultyj on April 27, 2011, 11:36:09 AM

Title: H2CTRIO configuration using DL205-250-1
Post by: mcnultyj on April 27, 2011, 11:36:09 AM
Hi everyone,

I was wondering if it would be possible to get a little help here with my PLC program.

Essentially, I have a DL205 with the following:
DC input card
DC output card
H2CTRIO counter interface

I have a simple program written using standard ladder logic (no Iboxes) to do a homing cycle of an XY stepper motor table.  Here is my issue/problem.

In order to make the homing sequence function properly, I must do the following:
Open the Workbench software
Monitor I/O
Output tab
Click process command On, then off
click enable output on
type a value into my Go To Position
click go to position
--- At this point the X or Y table moves to that position...
Now, I can exit the monitor I/O and workbench software
and then continue with my PLC functions (pressing the home sequence input button) then the table will move properly to its HOME location.

If I kill the power to the PLC and then reboot it however, the PLC program does not function properly - the tables do not move at all.  In order to make it work again, I must re-open Workbench, monitor I/O and re-move it manually...  Then the PLC program works again...

I am thinking that somewhere in the workbench software when I do that sequence it is configuring the H2CTRIO module..  Is there any way to configure this using the ladder logic of the PLC program so that when I reboot, I do not need to open Workbench???

Please ask if you need additional details or the program files etc...
Thanks,
Jason
Title: Re: H2CTRIO configuration using DL205-250-1
Post by: Greg on April 28, 2011, 12:34:05 PM
I assume since it works you have a Home Search profile configured in your CTRIO. This profile has a number. You must load that profile in ladder logic, manually enable the output from ladder logic, and then it will run. What is probably happening is you are going into Monitor I/O and the default on the Output Functions tab is set to 0x10 - Load Table with the File Number = 1, and you are hitting the Process Command bit. This is loading the Home Search profile to the Output of the CTRIO. Then as soon as you hit the Enable Output it works.

Or... you have a Dynamic Position profile configured and something similar is happening.

Either way. Exactly what you are doing in Monitor I/O you must do in ladder logic.

Also, I HIGHLY RECOMMEND you utilize the IBoxes... much easier to write the ladder logic.
Title: Re: H2CTRIO configuration using DL205-250-1
Post by: mcnultyj on April 28, 2011, 01:07:04 PM
Greg,

Thanks for your reply.

I think I actually figured it out this morning.  I needed to do a load profile sequence for the dynamic positioning file I had made.

I would try to use Iboxes, but there is really no documentation on them... I've tried to figure them out using the examples, but no go!

So far it works though, I will post more if I come up with additional issues.
-Jason
Title: Re: H2CTRIO configuration using DL205-250-1
Post by: Greg on May 02, 2011, 10:08:31 AM
Jason, the DirectSOFT5 Help file explains the IBoxes pretty good.