Definition
set_output_register_bit(address, val)
Features
It is used to export values to the Output Bit General Purpose Register area of the Industrial Ethernet(EtherNet/IP, PROFINET) Slave.
Parameters
|
Parameter Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
|
address |
unsigned short |
- |
Address value of Output Bit GPR area in Industrial Ethernet Slave(0-63) |
|
val |
int |
- |
ON : 1 OFF : 0 |
Return
|
Value |
Description |
|---|---|
|
0 |
Success |
|
Negative value |
Failure |
Exception
|
Exception |
Description |
|---|---|
|
DR_Error (DR_ERROR_TYPE) |
Parameter data 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 |
Example
Python
set_output_ register_bit (0, ON)
set_output_ register_bit (63, OFF)