You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to write to some indexes inside an array in a program scope tag.
I'm able to read the tags, but when I attempt to write I get the following error:
Error: TIMEOUT occurred while writing Writing Tag: Program:[program].[tag-name]
Do you guys have a discord server?
Current Behavior:
When attempting to write to a tag array it's rejecting the promise on a TIMEOUT error.
Expected Behavior:
Write to manipulated tag array indexes.
Context
exportconstsendCommand=async(command: Command)=>{try{constPLC=newController();awaitPLC.connect(command.ip,command.slot);constprogramName=command.commandTag.split(":")[1].split(".")[0];consttagName=command.commandTag.split(".")[1];consttagObj=newTag(tagName,programName,Types.REAL,0,1,1000);awaitPLC.readTag(tagObj);for(leti=0;i<command.parameters.length;i++){constparameter=command.parameters[i];tagObj.value[i]=parameter.value;}tagObj.value[command.offsetNum]=command.command;awaitPLC.writeTag(tagObj);// rejects this promiseawaitPLC.disconnect();}catch(error){console.log(error);}};
Environment:
Package version (Use npm list - e.g. 1.0.6): 2.6.7
Node Version (Use node --version - e.g. 9.8.0): 18.16.1
Operating System and version: Ubuntu 23.04
Controller Type (eg 1756-L83E/B): 1756-L84E
Controller Firmware (eg 30.11): 32.013
The text was updated successfully, but these errors were encountered:
Yep. That is a bug / missing implementation. Latest commit should work 59141c7 . pull from repo and try out. Not published to NPM yet.
You will have to run npm run build where it installed to compile the Typescript.
Summary:
I want to write to some indexes inside an array in a program scope tag.
I'm able to read the tags, but when I attempt to write I get the following error:
Do you guys have a discord server?
Current Behavior:
When attempting to write to a tag array it's rejecting the promise on a TIMEOUT error.
Expected Behavior:
Write to manipulated tag array indexes.
Context
Environment:
npm list
- e.g. 1.0.6): 2.6.7node --version
- e.g. 9.8.0): 18.16.1The text was updated successfully, but these errors were encountered: