Class IecType

Description

IecType

The class includes set of IEC-1131 data type functions that converts a PHP data types to a IEC data type.

  • author: Jan Krakora
  • copyright: Copyright (c) 2004, 2010 Jan Krakora

Located in /Phpmodbus/IecType.php (line 26)


	
			
Method Summary
static value iecBYTE (value $value)
static value iecDINT (value $value, [value $endianness = 0])
static value iecINT (value $value)
static value iecREAL (value $value, [value $endianness = 0])
Methods
static method iecBYTE (line 37)

iecBYTE

Converts a value to IEC-1131 BYTE data type

  • return: IEC BYTE data type
  • access: public
static value iecBYTE (value $value)
  • value $value: value from 0 to 255
static method iecDINT (line 65)

iecDINT

Converts a value to IEC-1131 DINT data type

  • return: IEC-1131 INT data type
  • access: public
static value iecDINT (value $value, [value $endianness = 0])
  • value $value: value to be converted
  • value $endianness: endianness defines endian codding (little endian == 0, big endian == 1)
static method iecINT (line 50)

iecINT

Converts a value to IEC-1131 INT data type

  • return: IEC-1131 INT data type
  • access: public
static value iecINT (value $value)
  • value $value: value to be converted
static method iecREAL (line 79)

iecREAL

Converts a value to IEC-1131 REAL data type. The function uses function @use float2iecReal.

  • return: IEC-1131 REAL data type
  • access: public
static value iecREAL (value $value, [value $endianness = 0])
  • value $value: value to be converted
  • value $endianness: endianness defines endian codding (little endian == 0, big endian == 1)

Documentation generated on Tue, 09 Jul 2013 23:46:23 +0200 by phpDocumentor 1.4.1