KristienP
Member
I am programming a pumping facility and am testing all code in the emulator as best I can before going to site.
Instead of Aliasing my Inputs and Outputs to tags, I am using a Structured Text routine to map the IO. It makes transitioning from my regular project to the emulated project much easier! I just delete the code in the ST Routine and then delete all modules and change controller type. Before I had to go into Controller Tags and individually delete the Tag Aliasing.
The code looks like this:
CS_P320_Run_DI := Rack_2:2:I.Data.0;
CS_PIT_3014_AI := Local:7:I.Ch3Data;
Rack_2:6:O.Data.0 := CS_P320_Run_DO;
Local:11:O.Ch5Data := CS_FV_3037_AO;
/* Local:11:O.Ch6Data := SPARE */
I also add all Inputs and Output and comment out any spares. It's an easy way to keep track of available spares within the program.
My question is.. Will mapping IO to tags via this ST Routine have any disadvantages over Aliasing the tags to the IO points?
Instead of Aliasing my Inputs and Outputs to tags, I am using a Structured Text routine to map the IO. It makes transitioning from my regular project to the emulated project much easier! I just delete the code in the ST Routine and then delete all modules and change controller type. Before I had to go into Controller Tags and individually delete the Tag Aliasing.
The code looks like this:
CS_P320_Run_DI := Rack_2:2:I.Data.0;
CS_PIT_3014_AI := Local:7:I.Ch3Data;
Rack_2:6:O.Data.0 := CS_P320_Run_DO;
Local:11:O.Ch5Data := CS_FV_3037_AO;
/* Local:11:O.Ch6Data := SPARE */
I also add all Inputs and Output and comment out any spares. It's an easy way to keep track of available spares within the program.
My question is.. Will mapping IO to tags via this ST Routine have any disadvantages over Aliasing the tags to the IO points?