Omron PLC´s

  • Thread starter Ricardo Rodrigues
  • Start date
R

Thread Starter

Ricardo Rodrigues

Hi i am trying to check a OUTPUT if is on or off and a INPUT how can i chck this with host link commands ? (@00XX0000XX*??

example i want to check if bit 010.10 is on or off

thanks in advance
 
D

David Wooden

Hello Ricardo:

To check the status of bit 10.10, you will need to read word 10 and then parse out the bit. To read word 10, the command would be:
@00RR0010000140*(CR)

The response should look like:
@00RR00XXXXFF*(CR)
XXXX= value of word
FF = FCS

To extract the value of bit 10, perform a bitwise AND with a word containing all zeros except for bit 10:
0000001000000000 b = 512, or 200H.
if the result of the bitwise AND calculation is zero, the bit is 0.

If you need more help, let me know, and also let me know the language and programming environment you are using.

Good luck,

David Wooden
Senior Software Engineer, Systems Integration
Automation and Enterprise Solutions Group
TAS Division of Omron Electronics LLC
Office: (847) 884-7034 Extension 432
Fax: (847) 884-9383
E-mail: [email protected]
 
Top