发表于:2007-08-06 12:43:00
楼主
王工:
台达PLC,8台台达变频器通讯,要求每个电机在台达人机上读取,写入频率,启动\停止,点动.
690 LD M1002
691 MOV HA6 D1120
696 SET M1120
697 MOV K100 D1129
702 LD<> D500 D50
707 OUT M0
708 LD<> D515 D51
713 OUT M1
714 LD<> D520 D52
719 OUT M2
720 LD<> D522 D53
725 OUT M3
726 LD<> D524 D54
731 OUT M4
732 LD<> D526 D55
737 OUT M5
738 LD<> D528 D56
743 OUT M6
744 LD<> D530 D57
749 OUT M7
750 LD M0
751 SET M65
752 MOV D500 D50
757 LD M1
758 SET M31
759 MOV D515 D51
764 LD M2
765 SET M32
766 MOV D520 D52
771 LD M3
772 SET M33
773 MOV D522 D53
778 LD M4
779 SET M34
780 MOV D524 D54
785 LD M5
786 SET M35
787 MOV D526 D55
792 LD M6
793 SET M36
794 MOV D528 D56
799 LD M7
800 SET M37
801 MOV D530 D57
806 LD M65
807 OR M31
808 OR M32
809 OR M33
810 OR M34
811 OR M35
812 OR M36
813 OR M37
814 OUT M38
815 LD M65
816 ANDP M1012
819 SET M1122
820 CNT C1 K3
824 LD M65
825 AND M1012
826 MODWR K1 H2001 D500
833 LD C1
834 RST M65
837 RST C1
840 LD M31
841 ANDP M1012
844 SET M1122
845 CNT C2 K3
849 LD M31
850 AND M1012
851 MODWR K2 H2001 D515
858 LD C2
859 RST M31
862 RST C2
865 LD M32
866 ANDP M1012
869 SET M1122
870 CNT C3 K3
874 LD M32
875 AND M1012
876 MODWR K3 H2001 D520
883 LD C3
884 RST M32
887 RST C3
890 LD M33
891 ANDP M1012
894 SET M1122
895 CNT C4 K3
899 LD M33
900 AND M1012
901 MODWR K4 H2001 D522
908 LD C4
909 RST M33
912 RST C4
915 LD M34
916 ANDP M1012
919 SET M1122
920 CNT C5 K3
924 LD M34
925 AND M1012
926 MODWR K5 H2001 D524
933 LD C5
934 RST M34
937 RST C5
940 LD M35
941 ANDP M1012
944 SET M1122
945 CNT C6 K3
949 LD M35
950 AND M1012
951 MODWR K6 H2001 D526
958 LD C6
959 RST M35
962 RST C6
965 LD M36
966 ANDP M1012
969 SET M1122
970 CNT C7 K3
974 LD M36
975 AND M1012
976 MODWR K7 H2001 D528
983 LD C7
984 RST M36
987 RST C7
990 LD M37
991 ANDP M1012
994 SET M1122
995 CNT C8 K3
999 LD M37
1000 AND M1012
1001 MODWR K8 H2001 D530
1008 LD C8
1009 RST M37
1012 RST C8
1015 LD M1002
1016 FMOV H1 D21 K8
1023 LDI Y0
1024 ORI M50
1025 RST M20
1028 LD M20
1029 AND Y0
1030 AND M50
1031 MOV H12 D550
1036 LDI M20
1037 ANI M23
1038 ANI M250
1039 ORI Y0
1040 ORI M50
1041 MOV H1 D550
1046 LD M23
1047 OR X3
1048 AND Y0
1049 AND M50
1050 OUT M250
1051 LDP M250
1054 SET M255
1055 LDF M250
1058 SET M260
1059 LD M255
1060 AND M50
1061 AND Y0
1062 MOV H3 D550
1067 LDP M255
1070 SET M1122
1071 LD<> D550 D21
1076 SET M40
1077 MOV D550 D21
1082 LD M40
1083 ANDP M1012
1086 CNT C10 K3
1090 LD C10
1091 RST M40
1094 RST C10
1097 LD M40
1098 ANDP M1012
1101 SET M1122
1102 LD M40
1103 AND M1012
1104 MODWR K1 H2000 D550
1111 LD M255
1112 AND M50
1113 AND Y0
1114 MODWR K1 H2000 K3
1121 LD M1123
1122 AND M255
1123 RST M255
1126 RST M1122
1129 LDP M260
1132 SET M1122
1133 LD M260
1134 ORI M50
1135 ORI Y0
1136 MODWR K1 H2000 H1
1143 LDP M1123
1146 AND M260
1147 RST M260
1150 RST M1122
1153 LD M24
1154 AND Y0
1155 MOV H12 D551
1160 LDI M24
1161 ORI Y0
1162 MOV H1 D551
1167 LD<> D551 D22
1172 SET M41
1173 MOV D551 D22
1178 LD M41
1179 ANDP M1012
1182 CNT C11 K3
1186 LD C11
1187 RST M41
1190 RST C11
1193 LD M41
1194 ANDP M1012
1197 SET M1122
1198 LD M41
1199 AND M1012
1200 MODWR K2 H2000 D551
1207 LD M25
1208 AND Y0
1209 MOV H12 D552
1214 LDI M25
1215 ORI Y0
1216 MOV H1 D552
1221 LD<> D552 D23
1226 SET M42
1227 MOV D552 D23
1232 LD M42
1233 ANDP M1012
1236 CNT C12 K3
1240 LD C12
1241 RST M42
1244 RST C12
1247 LD M42
1248 ANDP M1012
1251 SET M1122
1252 LD M42
1253 AN