LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Lecture/Ecriture de Bit d'un mot via Modbus depuis/vers Schneider API || Read and write bit of word via Modbus from/to(towards) Schneider PLC

Solved!
Go to solution

Bonjour et merci d'avance. J'ai un problème pour lire ou écrire un bit depuis ou vers un API schneider.

J'utilise Modbus comme protocole de communication.

Pourriez vous m'orientez vers une solution.

 

Hello and thanks by advance. I have a problem to read or writ a bit from or to(towards) a schneider PLC.

I used Modbus protocol of communication.

Could you point me to a solution.

 

 

 

 

0 Kudos
Message 1 of 6
(1,770 Views)

Hi David,

 


@DavidFrance44 wrote:

Hello and thanks by advance. I have a problem to read or writ a bit from or to(towards) a schneider PLC.

I used Modbus protocol of communication.

Could you point me to a solution.


Which problem do you have?

What have you tried?

Which Modbus library do you use?

Which "bit" do you want to access?

Mind to attach a manual for the specific register you want to access?

Point to solution: read the manual of your PLC…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(1,764 Views)

Here's some reading to get you started:

An introduction to Modbus

The Modbus Organization homepage has lots of information

The LabVIEW Modbus API discussion group

 

You will also need the proper manual for your device as it will have all the Modbus register information and details.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 6
(1,749 Views)

Hello, i would like read or write in the bit of word.

I used NI Modbus Library 1.2.1.42   .

For exemple if i have in Schneider PLC an address of registers for a word at @ %MW2245, i would like read a bit as that 2245.0 or 2245.1 or 2245.2 or .......

DavidFrance44_0-1616599723688.png

 

 

DavidFrance44_1-1616599762945.png

 

 

DavidFrance44_2-1616599830347.png

I don't know how to do for this.

 

 

0 Kudos
Message 4 of 6
(1,738 Views)
Solution
Accepted by DavidFrance44

@DavidFrance44 wrote:

Hello, i would like read or write in the bit of word.

I used NI Modbus Library 1.2.1.42   .

For exemple if i have in Schneider PLC an address of registers for a word at @ %MW2245, i would like read a bit as that 2245.0 or 2245.1 or 2245.2 or .......

 


That notation (2245.0 or 2245.1) means Holding Register 2245 Bit 0 or 2245 Bit 1

 

Read the holding register and convert the (Unsigned Integer) output to a Boolean Array

 

mb1.PNG

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 5 of 6
(1,727 Views)

Thank you i see this , in this evening.

 

 

Have a good Day.

0 Kudos
Message 6 of 6
(1,720 Views)