0% found this document useful (0 votes)
46 views

PLC and Micro Lab Final

Write an assembly language program to transfer N = 05H bytes of data from location A: 30h to location B: 40h.

Uploaded by

Sumon Mahmud
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views

PLC and Micro Lab Final

Write an assembly language program to transfer N = 05H bytes of data from location A: 30h to location B: 40h.

Uploaded by

Sumon Mahmud
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

ID:16EEE002

Write an assembly language program to transfer N = 05H bytes of data from


location A: 30h to location B: 40h.

Sourse Address (Input)


ID:16EEE002

Data Transfer Sourse to Destination


ID:16EEE002

Arithmetic Instruction Programming


Write an assembly language program to perform the addition of two 16-bit
numbers.
The two 16 bit number is mov to regsister r0,r1,r2,r3

Addition the two Upper Nibble added vule is 110 ,10 store in 22h memory
address and 1 store as a carry
ID:16EEE002

The output store in the memory address ,the lower nibble store in 22h
memory and upper nibble store in 21h

B.Write an assembly language program to perform the subtraction


of two 8-bit numbers.
Here I subtracted the two 8 bit number DCH and FEH,this value mov r0 and r2 register
ID:16EEE002

The subtraction value is A8,this vale store in 22h memory address


ID:16EEE002

A. Write an assembly language program to perform the


multiplication of two 8-bit numbers.

Here I multiple two 8bit number DCH and FEH,

The multiplication value is 16 bit store in two accumulator registor a and b and the value
is 48H and DA,it store in 22h and 21h memory address
ID:16EEE002

Code Conversion Programming


Write an assembly language program to convert a BCD number into ASCII.

Here I convert 09H BCD number into ASCII code ,

The 09 is packed unpacked value is 00h and 09H.The 00H ASCII value is 30
and 09H ASCII value is 39
ID:16EEE002

The 30 ASCII value store in the external data pointer 9001h and 39 ASCII value is store in
external data pointer in 9002H
ID:16EEE002

Programming the PLC Via Ladder logic


Here , I have done buffer, AND and OR gate logic in WPLSoft DELTA PLC

Here, I have done X-OR gate in WPLSoft in delta PLC


ID:16EEE002

For x-or gate logic,then A=0 and b=1,output is set on (output 1),below this
picture this operation is executed.

X-or logic when A=1 ,B=0 then x-or output is 1,below this picture execute this
logic

Above this two logic x-or output is 1,otherwise output is 0 (zero)


ID:16EEE002

Position control for satellite dish DC motors

When pushed X0 switch then motor is start to running at forward direction in


three second ,after 3 second then motor is stop.
ID:16EEE002

After 3 second the forward motor is stopped,When I pushed on switch X1 then


motor start to rotate in reverse direction for 4 second,

When pushed on both switch X0 and X1 ,then first motor rotate in forward for
3 second,then it stopped after 3 second motor rotate in reverse direction in 4
second ,this forward and reverse rotation running at simultaneously .
ID:16EEE002
ID:16EEE002

Starting Three Phase induction Motors Via Star-Delta Starter.

When pushed on X0 switch,then motor start in star connection in


main winding (Star is Y0,and main winding is Y1),at a time, timer (T0)
is count time.
ID:16EEE002

After timer count 5 second then star winding is open to main


winding, and delta winding(Y2) connect to the main winding. Finally
motor running in delta connection.

You might also like