Location: PHPKode > scripts > ModbusTcp > modbustcp/test.php
<?
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();

?>

Return current item: ModbusTcp