PHP code example of erikwang2013 / industrial-protocols-cclink

1. Go to this page and download the library: Download erikwang2013/industrial-protocols-cclink library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

erikwang2013 / industrial-protocols-cclink example snippets


$conn = $kernel->getConnectionManager()->connect('cclink-device');
// CC-Link 主站轮询

'devices' => [
    'cclink-device' => [
        'protocol' => 'cc-link', 'variant' => 'rs485',
        'device' => '/dev/ttyUSB2',
        'baud_rate' => 156000, 'station' => 0,
        'timeout' => 3000,
    ],
],