Please enable JavaScript to view this site.

List of all functions/instructions available in R3 programming language for managing the Modbus/TCP client protocol.

Legend: FC = Function Code - R = Permitted use in Rules - T = Permitted use in Tasks - I = Instruction - F = Function (thus has a return value)

Keyword

FC

R

T

F/I

Description

mbc_init()

-

-

T

F

Initialize Modbus/TCP client

mbc_mask_write_reg()

22

-

T

F

Write registers with mask

mbc_mask_write_reg_s()

22

-

T

F

Write registers with mask via support structure

mbc_read_coils()

01

-

T

F

Read coils

mbc_read_coils_s()

01

-

T

F

Read coils with support structure

mbc_read_discr_inp()

02

-

T

F

Read discrete inputs

mbc_read_discr_inp_s()

02

-

T

F

Read discrete inputs with support structure

mbc_read_hold_reg()

03

-

T

F

Read holding registers

mbc_read_hold_reg_s()

03

-

T

F

Read holding registers with support structure

mbc_read_inp_reg()

04

-

T

F

Read input registers

mbc_read_inp_reg_s()

04

-

T

F

Read input registers with support structure

mbc_write_coils()

05 (single coil)

15 (coils > 1)

-

T

F

Write coils

mbc_write_coils_s()

05 (single coil)

15 (coils > 1)

-

T

F

Write coils using support structure

mbc_write_multiple_coils()

15

-

T

F

Write coils using Modbus function code of multiple corresponding write functions

mbc_write_multiple_coils_s()

15

-

T

F

Write coils via support structure using Modbus function code of multiple corresponding write functions

mbc_write_multiple_regs()

16

-

T

F

Write registers using Modbus function code of multiple corresponding write functions

mbc_write_multiple_regs_s()

16

-

T

F

Write registers via support structure using Modbus function code of multiple corresponding write functions

mbc_write_reg()

06 (single reg)

16 (reg > 1)

-

T

F

Write registers

mbc_write_reg_s()

06 (single reg)

16 (reg > 1)

-

T

F

Write registers via support structure

mbcu_mask_write_reg()

22

-

T

F

Write registers with mask by specifying the unitID

mbcu_read_coils()

01

-

T

F

Read coils by specifying the unitID

mbcu_read_discr_inp()

02

-

T

F

Read discrete inputs specifying the unitID

mbcu_read_hold_reg()

03

-

T

F

Read holding registers specifying the unitID

mbcu_read_inp_reg()

04

-

T

F

Read input registers specifying the unitID

mbcu_write_coils()

05 (single coil)

15 (coils > 1)

-

T

F

Write coils by specifying the unitID

mbcu_write_multiple_coils()

15

-

T

F

Write coils specifying the unitID using Modbus function code of the corresponding multiple write functions

mbcu_write_multiple_regs()

16

-

T

F

Write registers specifying the unitID using Modbus function code of the corresponding multiple write functions

mbcu_write_reg()

06 (single reg)

16 (reg > 1)

-

T

F

Write registers by specifying the unitID

NOTE: The Function Code (FC) is a specific code used in a Modbus request to tell the Modbus slave device what type of memory (HOLDING REGISTERS, INPUT COILS, ...) to access and what action to perform on that memory (read or write).

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC