Special Instrutions -Together

dandrade

Member
Join Date
Jan 2004
Posts
374
It post for group all instrutions little common. And importance for determined aplications.Continue add, seek style...and if possible convension/organization.

Write generic glossary: Please use convension X=input, Y=Output, V=variables R=register data (save memory) M=coil memory

Manipulation data:

1)Set Fill
Paramters:Lenght,value set and variable.
  [Set fill 4 0 V1] 
Before V1=83 V2=62 V3=45 V4=73
After V1->V4=0



2)Move block
Parameters: Lenght and variables - Variable A and B
[Move block V1 V4 3]
Before After
V1=1 V4=0 V1=1 V4=1
V2=2 V5=8 V2=2 V5=2
V3=3 V6=0 V3=3 V6=3



Comparation

1)Table comparation
Parameters: Value,pointer and list start - Fix lenght 16 or 32

[Table comparation Value Pointer Start-variable]
[Table comparation 1234 V100 V1]
V100=2 ---> Pointer V2
V2=444 < 1234 --->Set coil "<"


Outputs: Special comparation coil, fix for " = < >"
OR

[Table comparation Value Pointer Start Variable Coil]
[Table comparation 1234 V100 V1 M1]
M1= comparation "==" equal M2="<" M3=">"[?LADDER]

2)Comparation indirect 2 Two value .
---Dont know It exist?---

Conversion

1)Equation conversion (equation of straight)
Parameters: System A System B ;PLC A PLC B; Input Output
Obs: Produce equivalent values for TWO strainght

Manipulation Bits

1)Matriz output .
Parameters: Value out Start Y row Start Y collumn Type
Obs:Type equivalent lenght relation row VS collumn
(Sorry add image-)
2)Matriz input
Parameters: Start Y Start X Type
Obs:Type equivalent lenght relation row VS collumn
(Sorry add image)

3)Counter bits ON
Parameters: Variable IN Variable OUT
[Counter bits V2    V3]
before after
V2=143 =>10001111 V3=0 V3=05


4)Swap nibles
Parameters:Variable A
[Swap nibles V1]
before V1=11->00001011 after V1=10110000=176


7)Decoder
Equivalent to Convert data->bits

8)Convert data->bits
Parameters: Data and coil start
[Convert Data V1 M1]
Before
V1=163 ->10100011 M1 to M8 =OFF
After
V1=163 M1=1;M2=0;M3=1;M4=0;M5=0;M6=0;M7=1;M8=1

OR
Possible use instrution MOVE Variable--->Start coil byte (is bidiretional conversion)




6)Multiplex and Demultiplex ....
It commmon...function

7)Mirror byte
---Dont know It exist?


Special comunications -(RX, TX to left...)

1)CRC - Make check sum
Parameters:Start Variable Lenght Out variable

[CRC Make Start variable Lenght Out Variable]
[CRC Make V10 50 V100]


OR

[CRC make Start variable Leght]
[CRC make V10 50] Check sum in V61



Statistic
--Dont know, to right it exist it important.

Continue....

 

Similar Topics

Good Morning , We have some new machinery coming in with a ControlLogix 5582ES Safety CPU . I would like to update our software before the...
Replies
3
Views
2,441
We have an inductive sensor mounted in front of a rotating pulley, which has one small steel part rising close to the sensor. The sensor is wired...
Replies
9
Views
2,214
Hi!! Could someone please help me find a special relay command (not a real relay) that stays activated when it receives a pulse from a NO contact...
Replies
8
Views
3,407
Hello all, Have an interesting problem today. My PLC program is building the content of a 2d matrix barcode and sending the data to a Zebra 105SL...
Replies
10
Views
11,875
Back
Top Bottom