forked from Modi1987/KST-Kuka-Sunrise-Toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetPin3State.m
More file actions
27 lines (20 loc) · 753 Bytes
/
getPin3State.m
File metadata and controls
27 lines (20 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function [ state ] = getPin3State( t )
%% This function is used to get the state of the input pin 3
% on the media flange, of the KUKA iiwa 7 R 800.
%% Syntax:
% [ state ] = getPin3State( t )
%% About:
% This function is used to get the state of the input pin number 3
% on the media flange, of the KUKA iiwa 7 R 800.
%% Arreguments:
% t: is the TCP/IP connection.
% state: represents the state of the input-pin. It is an integer equal to
% 1 when the pin state is true, or it is an integer equal to 0 when the
% pin state is false. Otherwise, if the pin is not connected the return
% value is empty.
% Copyright, Mohammad SAFEEA, 9th of May 2017
theCommand='getPin3';
fprintf(t, theCommand);
message=fgets(t);
state=str2num(message);
end