PlcScanWriteWordDecimal

 

Analog output is performed using a decimal address in the communication program.

By using the @PlcScanWriteWord function, you can output using a hexadecimal address.

 

void @PlcScanWriteWordDecimal(int port, int station, int address, string extra1, int extra2, double value);

 

Parametes

int port: Port number to print

int station: Station number to print

int address: Address to print (decimal)

string extra1: Extra1 to write

int extra2: Extra2 to write

double value: Value to write

 

Return value

none

 

Example 1)

@PlcScanWriteWordDecimal(0, 1, 63, "16", 0, 12.34); >> Output to address 63 (0x3F).

@PlcScanWriteWordDecimal(0, 1, 0x63, "16", 0, 12.34); >> Output to address 99(0x99).

@PlcScanWriteWordDecimal(0, 1, 99, "16", 0, 12.34); >> Output to address 99(0x63).

 

 

Note: When using Dll-Modbus2, you must enable the 'Fix Block Write Address Error' option in the protocol options window.

 

Version Information

Supported Version: 10.3.7.4 or later

 

Related Helps

@PlcScanSetPortActive()

@PlcScanSetReadDelay()

@PlcScanWriteBit()

@PlcScanWriteBlock()

@PlcScanWriteWord()