Module functions

TM NPU MicroPython

Product
SIMACTIC S7-1500 TM NPU 2.0
Language
en-US
Category
Manual

By creating an instance of the plc class the user initializes the underlying PLC communication subsystem. This should be done during the "initialization phase" of the script (please see TM NPU User Manual for more details and proposals on how to structure the script). The returned instance can then be used to call read() and write() functions.

An instance of the class is created by calling:

plc_without_protocol.plc()

This returns a plc object.

Note:

Only one instance of the plc class can be created. In order to create a new instance of class plc, call the defined procedure to clean up resources. Please consult the information below on the use of plc.destroy() and the note on using 'del' for more details.

See alsoClass: Plc