Skip to content

Can`t write to booleans #2

Description

@AMooshofer

I got another issue: i can not write to a boolean on my S7-300 or S7-400 plc.
I tried every other datatype (INT, REAL, DT, strings), but on boolean i get an error:

(node:10696) UnhandledPromiseRejectionWarning: Error: PLC error [0x8104]: This service is not implemented on the module or a frame error was reported at S7Connection._onIncomingData (D:\Freigabe\curly-octo-spork\node_modules\@st-one-io\nodes7\src\s7connection.js:170:23) at S7Parser.<anonymous> (D:\Freigabe\curly-octo-spork\node_modules\@st-one-io\nodes7\src\s7connection.js:84:43) at S7Parser.emit (events.js:315:20) at addChunk (_stream_readable.js:302:12) at readableAddChunk (_stream_readable.js:278:9) at S7Parser.Readable.push (_stream_readable.js:217:10) at S7Parser.Transform.push (_stream_transform.js:152:32) at S7Parser._transform (D:\Freigabe\curly-octo-spork\node_modules\@st-one-io\nodes7\src\s7protocol\s7parser.js:480:22) at S7Parser.Transform._read (_stream_transform.js:191:10) at S7Parser.Transform._write (_stream_transform.js:179:12) at emitUnhandledRejectionWarning (internal/process/promises.js:149:15) at processPromiseRejections (internal/process/promises.js:211:11) at processTicksAndRejections (internal/process/task_queues.js:98:32) (node:10696) Error: PLC error [0x8104]: This service is not implemented on the module or a frame error was reported at S7Connection._onIncomingData (D:\Freigabe\curly-octo-spork\node_modules\@st-one-io\nodes7\src\s7connection.js:170:23) at S7Parser.<anonymous> (D:\Freigabe\curly-octo-spork\node_modules\@st-one-io\nodes7\src\s7connection.js:84:43) at S7Parser.emit (events.js:315:20) at addChunk (_stream_readable.js:302:12) at readableAddChunk (_stream_readable.js:278:9) at S7Parser.Readable.push (_stream_readable.js:217:10) at S7Parser.Transform.push (_stream_transform.js:152:32) at S7Parser._transform (D:\Freigabe\curly-octo-spork\node_modules\@st-one-io\nodes7\src\s7protocol\s7parser.js:480:22) at S7Parser.Transform._read (_stream_transform.js:191:10) at S7Parser.Transform._write (_stream_transform.js:179:12) (node:10696) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. at emitDeprecationWarning (internal/process/promises.js:161:11) at processPromiseRejections (internal/process/promises.js:213:13) at processTicksAndRejections (internal/process/task_queues.js:98:32)

My test function:
async function test() { var endp = new S7Endpoint(param[0]); endp.once("connect", async () => { console.log("Connection established!"); let itemGroup = new S7ItemGroup(endp); await itemGroup.writeItems("DB5,X524.0", true); }); endp.on("error", (err) => { console.log(Error on connection: ${err}); }) }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions