porcha2 писал(а): А чё с примерами? надо что-ли? Будет время - попробую списать. У меня это в бумажном виде.
Очень хотелось бы...
Что-то ничего не получается :(((
Что я делал:
1. подключил валидатор к СОМ порту. После включения он почуму то все время моргает красным, вроде как 9 раз подряд потом небольшая пауза и снова
2. создал в С# проэкт создал там СОМ порт выставил настройки 9600, 8, parity EVEN, stopBit 1, все остальное какбыло
3. а дальше посылаю ему команду :
Set Stacker Required for Operation Mode Command (46H)
Command Code = 46 HEX
Data Bytes Sent by Controller = none
Response Length = ACK Max
Response Time = 20 msec
if validator is not in the bill processing stage; or, no response
if validator is in the bill processing stage.
Message from Controller: [02][00][00][07][46][FF][B1]
Response from Validator: [02][00][00][07][00][FF][F7]
This command sets the flag in validator to require a stacker for normal operation. If a stacker is not present, validator operation is inhibited (Inhibit state). When a stacker is connected, the validator will be operational and will enter the Idle state. For the default setting, the stacker is required for normal operation.