Download presentation
Presentation is loading. Please wait.
4
PLC.ASM Example
6
Addresses Machine Code in Hex :020000040000FA :020000000528D1 :08000800112800308C00831662 :1000100000308500F0308600831288308B0063004A :100020000F2800308D0006088E00F039031D2220B5 :1000300060300C05603A031925208D1928280E1A06 :100040002520282810308D04080008308D04080071 :0C0050000E088C000D0885000B10090044 :00000001FF plc.lst Listing file
7
From list file
9
00000000 W Register
10
00000000 TRISA Register Outputs 11110000 TRISB Register Inputs
11
10001000 INTCON Register
13
00000000 W Register
14
01010000 PortB 01010000 W Register
15
1111000001010000 Bitwise AND 01010000 W Register
17
0001000000010000 Put a 1 in 4 th bit of OUTPUT
18
0110000001000000 W Register Bitwise AND old_data 01100000 xorlw 00100000 Compare with 00000000 by checking Z bit
20
Simulation Create a new project Add the file plc.asm
28
Input
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.