Hello,
Can anyone help me in testing AI/AO in Easyplc if it is properly connected in Machine Simulator.
I have a problem when triggering AI/AO in OPC test config in EasyPLC.
The Inputs and Outputs are not responding in Machine Simulator.
But when I try the DI/DO, it is responding correctly.
See attached photo.
[attachment deleted by admin]
I'm afraid we can't help you if do not post more information, like plc program!
Hi,
I have no PLC program yet.
I only test the communication between EasyPLC and Machine Simulator.
As seen in the picture, I'm only triggering the I/O's in EasyPLC.
The DI/DO's responds correctly but the AI/AO's, no response at all.
[attachment deleted by admin]
Hi Master,
Is this OPC code looks good to run AI/AO?
Or I'm wrong with it? See photo.
[attachment deleted by admin]
Hi,
The attached file also not working with me during EasyPLC and MachineSimulator test config, because of its Analog I/O.
Can anyone try this simple pipe. The action of this pipe is to rotate.
After triggering DigitalOutput 0 and supply the analog Speed AnalogOutput 0. The pipe will rotate.
Please test it using machine simulator and EasyPLC.
Thank you!
[attachment deleted by admin]
The problem is here:
for (int i = 0; i < 16; i++) //16 not ok -> 11 instead
{
WriteOutput(1,i,ReadInput(0,i));
WriteAOutput(1,i,ReadAInput(0,i));
WriteOutput(0,i,ReadInput(1,i));
WriteAOutput(0,i,ReadAInput(1,i));
}
You are looping 16 I/O but you only declared 11 I/O in the driver #1.