3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish
3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish

flange_serial_write()

Definition

flange_serial_write(tx_data, port=1)

Features

This function records the data (data) to a flange serial port.

Parameters

Parameter Name

Data Type

Default Value

Description

tx_data

byte

-

Data to be transmitted (max 32byte)

  • The data type must be a byte.

  • Refer to the example below.

port


int

1

Port number to write

X1 Port: 1

X2 Port: 2 (Not available for A Series)

Return

Value

Description

0

Success

Exception

Exception

Description

DR_Error (DR_ERROR_TYPE)

Parameter data type error occurred

DR_Error (DR_ERROR_VALUE)

Parameter value is invalid

DR_Error (DR_ERROR_RUNTIME)

C extension module error occurred

DR_Error (DR_ERROR_STOP)

Program terminated forcefully

Keyword

flange / flange_ / flange_serial / flange_serial_