Skip to main content

fins_ltt 0.0.2 copy "fins_ltt: ^0.0.2" to clipboard
fins_ltt: ^0.0.2 copied to clipboard

A lightweight Dart library that implements the Omron FINS UDP protocol for communicating with Omron PLCs.

example/fins_ltt_example.dart

import 'package:fins_ltt/fins_ltt.dart';

Future<void> main() async {
  final plc = await FinsUdpClient.bind(
    plcHost: '192.168.0.5',
    network: 0,
    pcNode: 191,
    plcNode: 5,
  );

  try {
    // Read DM words
    final words = await plc.readWords(
      area: FinsMemoryArea.dmWord,
      start: 100,
      count: 4,
    );
    print('DM words: $words');

    // Read CIO bit
    final bit = await plc.readBit(
      area: FinsMemoryArea.cioBit,
      start: 100,
      bit: 5,
    );
    print('CIO bit: $bit');
  } finally {
    await plc.close();
  }
}
0
likes
160
points
147
downloads

Documentation

API reference

Publisher

verified publisherluigitarpani.it

Weekly Downloads

A lightweight Dart library that implements the Omron FINS UDP protocol for communicating with Omron PLCs.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on fins_ltt