Page 1 of 1

Send data

Posted: Tue Aug 07, 2012 7:00 am
by rolf.viktor
Hello,

i have a problem and I don't know how to rezolve it. I want to send data from a sielco template (for exemple if a user want to introduce a limit or something) to a plc using modbus rtu. I intend to have a label or something where user could introduce his data and then push a button to send data.

Re: Send data

Posted: Tue Aug 07, 2012 9:58 am
by admin
Dear Sir,
is very simple. Insert an Edit object and link up to device gate previously defined in Gate Builder.

Best Regards

Re: Send data

Posted: Tue Aug 07, 2012 11:00 am
by rolf.viktor
Here is my function code:

function void citire_valoare()
int value;
value=GetNumGateValue("Cota_Energie",3);
//trimitere date catre alt label value=2;
SetNumGateValue("Afisare_Energie",3,value);

end

i don't know what is wrong with it....

after i press the button the gate "Cota_Energie " it's not initialized and i don't know why...

Re: Send data

Posted: Tue Aug 07, 2012 11:04 am
by admin
Dear sir,
please send your application to support@sielcosistemi.com

Best Regards

Re: Send data

Posted: Tue Aug 07, 2012 11:16 am
by rolf.viktor
i've send right now my application. It's just a test application....

Re: Send data

Posted: Tue Aug 07, 2012 1:21 pm
by rolf.viktor
how can i send this data to a TWIDO plc? can you describe in a few words which are the steps ?

Re: Send data

Posted: Tue Aug 07, 2012 1:57 pm
by admin
You just need to configure channel with TWIDO protocols and gate with correct address.

Regards

Re: Send data

Posted: Tue Aug 07, 2012 1:59 pm
by rolf.viktor
thank you again for the replay and for the email.:)