Introduction

The Opto 22 Library Package for CODESYS Development System includes a collection of function blocks that can be used to access any area of a device’s OptoMMP memory map.

CODESYS MMP Example

The OptoMMP memory map provides a programming interface to a device’s I/O and other features provided by the I/O server.

See the OptoMMP Protocol Guide (form 1465) for an introduction and complete reference for the OptoMMP protocol.

OptoMMP Function Blocks

The included function blocks for OptoMMP are:

  • MmpClient
  • MmpClientReadBlock
  • MmpClientWriteBlock
  • MmpClientReadQuad
  • MmpClientWriteUDINT
  • MmpClientWriteReal

Prerequisites

To use the OptoMMP function blocks in a CODESYS application, the following components are required:

  • CODESYS Development System
    • V3.5 SP17 or later (32-bit)
  • PLC Device
    • 3.5.17.0 or later runtime
      • groov EPIC 3.3 first included the 3.5.17.10 runtime
      • Any other 32-bit runtime (e.g. CODESYS Control Win V3 demo runtime included with the Development System install)
  • Opto 22 Library Package for CODESYS Development System
    • Version 3.0.0.0 or later
    • Must be installed into the CODESYS Development System
    • Must be added into the Library Manager of the user’s application project

Next Step

Continue to Design and Inspiration of the OptoMMP Function Blocks.