Skip to content

In CLIENT RTU the Function Codes are not correct impemented #21

Answered by serhmarch
varionix asked this question in Q&A
Discussion options

You must be logged in to vote

Yes. It is a different thing.

0x,1x,3x,4x are just memory type identifiers notation and those identifiers do not correspond to Modbus function numbers:

  • 0x - intended for coils (discrete outputs, boolean), corresponding modern PLC notation is %M or %Q (e.g. 000001 coil in modern notation can be accessed like %M0 or %Q0), can have Read/Write access, corresponding access functions are READ_COILS (which number is 1) and WRITE_MULTIPLE_COILS(15, 0x0F);
  • 1x - intended for discrete inputs (boolean), corresponding modern PLC notation is %I (e.g. 100001 boolean in modern notation can be accessed like %I0), has ReadOnly access, corresponding access function is READ_DISCRETE_INPUTS (2);
  • 3x - intend…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@varionix
Comment options

@serhmarch
Comment options

Answer selected by varionix
@varionix
Comment options

@serhmarch
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants