File: test.php

Recommend this page to a friend!
  Classes of fuchs yves  >  ModbusTcp  >  test.php  >  Download  
File: test.php
Role: Unit test script
Content type: text/plain
Description: Small test file
Class: ModbusTcp
Author: By
Last change: updates
Date: 16 years ago
Size: 500 bytes
 

Contents

Class file image Download
<?
ob_start
(); // Bufferisation de tous les 'echo, print....'

$Tab = array ( "400001", "400124", "400210", "400300", "300001", "300124", "100001", "100125", "00001", "000124");

//$Tab = array ( "000008", "100001", "300001");

require_once "class_ModbusTcp.php";

$Plc = new ModbusArray;
$Plc->SetAdIpPLC ("195.6.140.177");
//$Plc->BridgeRoute = array(57,1,0,0,0);
//$Plc->SetDebug();
//$Plc->SetSimulation();

$result = $Plc->ReadArrRegs($Tab);
$Plc->print_r_log($result) ;

$Plc->ModClose();

?>



For more information send a message to info at phpclasses dot org.