tomcx / tame4

JS library for the access to a TwinCAT PLC. Current version V4.3.1 final.
GNU General Public License v3.0
44 stars 8 forks source link

Variable values does not change #16

Closed raheemdawar closed 6 years ago

raheemdawar commented 6 years ago

``var Plc; function startClient() { Plc = TAME.WebServiceClient.createClient({ serviceUrl: 'http://192.168.1.150/TcAdsWebService.dll', //configFileUrl: 'http://192.168.1.2/tamex/resources/demo2.tpy', //Path to the TPY file amsNetId: '5.22.187.194.1.1', amsPort: '801', //default // useHandles: handles, //use handles alignment: '4', //default, set it to "4" if you have TC2 and an ARM based PLC device (i.e. CX90xx), to 8 with TC3 //language: 'ge', //default, set it to "en" for english names of days and months onReady: test //this function is defined in each example }); } function test() {

Plc.writeBool({name:"MAIN.Licht_Hobby1", val: true});

}`` I can read the values but when i modify the variable value it shows me no error but does not changes its value.

tomcx commented 6 years ago

Are you sure that the variable is not assigned anywhere in the PLC? The variable must be "free" and and not be written in any PLC network. Many people simply try to overwrite their input variables but that's not possible.

raheemdawar commented 6 years ago

There is no problem in the tame library and the plc variable name was also correct.But the problem was on the access permission to these variables.

tomcx commented 6 years ago

So the problem is solved and I can close the issue?

raheemdawar commented 6 years ago

Yeah of course thanks for the support